MEGA65 / open-roms

A project to create unencumbered open-source ROMs for use on selected retro computers
Other
263 stars 18 forks source link

Deleting last line results in invalid negative BASIC line link #13

Closed gardners closed 5 years ago

gardners commented 5 years ago

e.g.: 10 FOO 20 BAR 30 QUUX

Creates 3 validly linked lines. Deleting any 2 of them is fine, but when the last is deleted, $0801-$0802 contain a pointer that points to e.g., $FFF7

Basically the problem is the zero address pointer at the end of the program gets the length of the most recently deleted line deducted from it.

gardners commented 5 years ago

Fixed.