I have recently been working to get Enhanced Basic working on the C02 Pocket SBC. I would like mention thanks to Klaus for maintaining a version of EhBasic 2.22p4 (latest patched version) and for his support over in the EhBasic forum along with several others.
I have modified the code a fair amount as follows:
- removal of all code and commands for NMI/IRQ support
- CHRGET/CHRGOT routine now located in ROM
- CMOS instructions and addressing modes now in use
- all functional and initialization code are in BASIC.ASM (C02 Monitor launches Basic only)
- relocated all page zero defines for contiguous space from $0000 - $0085
- EXIT command added to return to Monitor
- version changed to 2.22p4C (denotes CMOS CPU required)
- now assembles/links with WDC Tools
Adding BASIC to the SBC has required a small number of changes to the Monitor. There's a minor update to the BIOS but no functional changes. I've included all files necessary to assemble and link the update BIOS, Monitor and EhBasic 2.22p4C. The single ZIP file attached contains two directories: one for the C02 Monitor/BIOS and one for EhBasic.
The updated BASIC code should run on any CMOS 65C02 (only tested on WDC) and requires character in/out routines and optionally a code vector for the EXIT command. The existing LOAD/SAVE commands/vectors are not yet implemented. Once I complete the Xmodem upload function in the Monitor, I'll add both of these capabilities to the Basic code. I hope someone finds the CMOS version useful... it is a bit smaller (9894 bytes) and should run a tad bit quicker due to some of the CMOS re-coded routines.
Attachment:
C02Monitor-EhBasic.zip [738.94 KiB]
Downloaded 122 times