mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-02-01 06:33:16 +00:00
rearrange input buffer and lowram layout to allow longer file names
This commit is contained in:
parent
c795bc7946
commit
51bd39ac8c
@ -16,12 +16,12 @@ void comando_help() {
|
||||
}
|
||||
}
|
||||
|
||||
// builds the name of the help file
|
||||
strcpy((char *)KEYBUFSTART, "/HELP/");
|
||||
strcat((char *)KEYBUFSTART, filename);
|
||||
strcat((char *)KEYBUFSTART, ".TXT");
|
||||
// builds the name of the help file using the input buffer as buffer
|
||||
strcpy(KEYBUF, "/HELP/");
|
||||
strcat(KEYBUF, filename);
|
||||
strcat(KEYBUF, ".TXT");
|
||||
|
||||
strcpy(filename, (char *)KEYBUFSTART);
|
||||
strcpy(filename, KEYBUF);
|
||||
|
||||
comando_type();
|
||||
}
|
||||
|
@ -3,17 +3,18 @@
|
||||
|
||||
byte **const BASIC_LOMEM = (byte **) 0x004a; // lomem pointer used by integer BASIC
|
||||
byte **const BASIC_HIMEM = (byte **) 0x004c; // himem pointer used by integer BASIC
|
||||
byte *const KEYBUF = (byte *) 0x0200; // use the same keyboard buffer as in WOZ monitor
|
||||
|
||||
|
||||
#define KEYBUFSTART (0x200)
|
||||
#define KEYBUFLEN (79)
|
||||
|
||||
// keyboard buffer 0x200-27F uses only the first 40 bytes, the rest is recycled for free mem
|
||||
|
||||
byte *const command = (byte *) (KEYBUFSTART+KEYBUFLEN ); // [6] stores a 5 character command
|
||||
byte *const filename = (byte *) (KEYBUFSTART+KEYBUFLEN+6 ); // [33] stores a filename or pattern
|
||||
byte *const hex1 = (byte *) (KEYBUFSTART+KEYBUFLEN+6+33 ); // [5] stores a hex parameter
|
||||
byte *const hex2 = (byte *) (KEYBUFSTART+KEYBUFLEN+6+33+5); // [5] stores a hex parameter
|
||||
byte *const filename = (byte *) (KEYBUFSTART ); // $0200-$021F [33] stores a filename or pattern
|
||||
byte *const KEYBUF = (byte *) 0x0220; // $0220-$026F [80] keyboard input
|
||||
byte *const hex1 = (byte *) (KEYBUFSTART+33+KEYBUFLEN ); // $0270-$0274 [5] stores a hex parameter
|
||||
byte *const hex2 = (byte *) (KEYBUFSTART+33+KEYBUFLEN+5 ); // $0275-$0279 [5] stores a hex parameter
|
||||
byte *const command = (byte *) (KEYBUFSTART+33+KEYBUFLEN+5+5); // $027A-$027F [6] stores a 5 character command
|
||||
|
||||
const byte OK_RESPONSE = 0x00;
|
||||
const byte WAIT_RESPONSE = 0x01;
|
||||
|
Loading…
x
Reference in New Issue
Block a user