I'm afraid I'm going to need some help to get this working..
I've assembled OSI Basic from
https://github.com/mist64/msbasic and I'm trying to get past the welcome screen on my 6502 SBC.
After correctly setting memory size and terminal width I end up with an OK prompt that refuses to give me anything but "?SN ERROR" no matter what I throw at it. I usually use LIST as my test phrase.
It looks like it's writing to the zero page input buffer just fine, but has issues parsing it and I'm having a hard time debugging it.
Currently I can't seem to enter numbered lines either - if I enter "10 LIST" I can't seem to finish the line and get a new "OK".
My MONRDKEY and MONCOUT routines both backup and restore x & y. MONRDKEY also converts $0A from the keyboard to $0D (CR).
I'm hoping a little bit that someone can confirm or deny that OSI Basic assembles correctly with a recent version of cc65 or has a hint to debug the syntax errors.
Anyone had this running on any hardware with a recent cc65 version?
This is my current defines_osi.s file - I have zero page locations moved around to get out of the way of my keyboard routines(original address in the comments):
Code:
; configuration
CONFIG_10A := 1
CONFIG_DATAFLG := 1
CONFIG_NULL := 1
CONFIG_PRINT_CR := 1 ; print CR when line end reached
CONFIG_SCRTCH_ORDER := 3
CONFIG_SMALL := 1
ZP_START1 = $30; $00
ZP_START2 = $3D ;$0D
ZP_START3 = $83; $5B ;10b
ZP_START4 = $8D ;$65
CRLF_1 := $0D
CRLF_2 := $0A
;extra ZP variables
USR := $003A; $000A
; constants
STACK_TOP := $80
SPACE_FOR_GOSUB := $33
NULL_MAX := $0A
WIDTH := 72
WIDTH2 := 56
; memory layout
RAMSTART2 := $1300
; magic memory locations
L0200 := $0200
; monitor functions
;MONRDKEY := $FFEB
;MONCOUT := printk ;$FFEE
MONISCNTC := clcrts;$FFF1
LOAD := f3_pressed ;$FFF4
SAVE := f2_pressed ;$FFF7