Re: BASIC
Posted: 22 Jul 2018, 19:08
Some progress:
Some nice POKEs:
- FOR-NEXT loops (no STEP)
- Arrays. No need for DIM, the arrays grow vertically from top of memory towards the end of the program.
- CLS: Clear screen
- AT: Position cursor anywhere inside the screen (for Y it performs a lookup in the videoTable)
- PUT: write an ASCII value (lacking string variables, this gives some flexibility)
- MODE: will switch between video/speed modes (ignored on ROMv1)
Some nice POKEs:
- POKE 42, x: Change background color for printing
- POKE 43, x: Change pen color
- POKE 257,200: Observe memory layout of BASIC, program, arrays, variables...