Skip to content

Commit

Permalink
MSDOS code for release 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan committed Aug 6, 2022
1 parent b178992 commit e9e4889
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,7 @@ void memwrite2(address_t a, mem_t c) {

/* get a token from memory */
void gettoken() {
int i;

/* if we have reached the end of the program, EOL is always returned
we don't rely on mem having a trailing EOL */
Expand Down Expand Up @@ -2429,11 +2430,11 @@ void gettoken() {
* the string constant length to the length of the input buffer
*/
#if defined(USEMEMINTERFACE)
for(int i=0; i<x; i++) spistrbuf1[i]=memread(here+i);
for(i=0; i<x; i++) spistrbuf1[i]=memread(here+i);
ir=spistrbuf1;
#else
if (st == SERUN) {
for(int i=0; i<x; i++) ibuffer[i]=memread(here+i);
for(i=0; i<x; i++) ibuffer[i]=memread(here+i);
ir=ibuffer;
} else {
ir=(char*)&mem[here];
Expand Down Expand Up @@ -2475,7 +2476,7 @@ void nextline() {
#if defined(LINECACHESIZE) && LINECACHESIZE>0
const unsigned char linecachedepth = LINECACHESIZE;
typedef struct {address_t l; address_t h;} linecacheentry;
linecacheentry linecache[linecachedepth];
linecacheentry linecache[LINECACHESIZE];
unsigned char linecachehere = 0;

void clrlinecache() {
Expand Down
4 changes: 4 additions & 0 deletions basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,11 @@ short wireavailable();
/* RF24 radio input */
int radiostat(char);
void radioset(int);
#ifndef MSDOS
uint64_t pipeaddr(char*);
#else
long pipeaddr(char*);
#endif
void iradioopen(char*);
void oradioopen(char*);
void radioins(char*, short);
Expand Down

0 comments on commit e9e4889

Please sign in to comment.