adding applesoft basic rom

This commit is contained in:
Thiago Auler dos Santos 2017-11-26 20:30:04 -02:00
parent 0ab9e5f38d
commit 9630513b75
2 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,7 @@ void input()
{ {
int ch = getch(); int ch = getch();
if (ch == '\n') { ch = '\r'; } if (ch == '\n') { ch = '\r'; }
if (ch == '\r' || ch == '.' || ch == ':' || if (ch == '\r' || ch == '.' || ch == ':' || ch == ' ' ||
(ch >= '0' && ch <= '9') || (ch >= '0' && ch <= '9') ||
(ch >= 'A' && ch <= 'Z')) (ch >= 'A' && ch <= 'Z'))
{ {

View File

@ -1,5 +1,6 @@
#include "inc/types.h" #include "inc/types.h"
#include "inc/rom.h" #include "inc/rom.h"
#include "inc/basic.h"
#include "inc/memory.h" #include "inc/memory.h"
/* /*
@ -61,6 +62,12 @@ db read_byte(dw address)
{ {
return display_buffer; return display_buffer;
} }
else if (address >= 0xE000 && address <= 0xEFFF)
{
// AppleSoft Basic
address = address & 0xFFF;
return basic_memory[address];
}
else if (address >= 0xFF00 && address <= 0xFFFF) else if (address >= 0xFF00 && address <= 0xFFFF)
{ {
// wozmon ROM // wozmon ROM