Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 1.66 KB

TODO.md

File metadata and controls

73 lines (59 loc) · 1.66 KB

TODO

The following routines are extensions to the Original RetroBASIC project

MATH

  • Hardware accelerated Floats

File IO

  • BLOAD "FILENAME", &HFFFFFFFF
  • OPEN #1, "O", "FILENAME"
  • CLOSE #1
  • EOF(1)
  • WRITE #1, string-expression [;]
  • READLN #1, line$

DOS Commands

  • DIR
  • CHDIR "path"
  • DELETE "path"

Memory Routines

8 Bit Access

  • n = PEEK(&HFFFFFFFF)
  • POKE &HFFFFFFFF, &HFF

16 Bit Access

  • n = PEEKW(&HFFFFFFFF)
  • POKEW &HFFFFFFFF, &HFFFF

32 Bit Access

  • n = PEEKL(&HFFFFFFFF)
  • POKEL &HFFFFFFFF, &HFFFFFFFF

Block Copies

  • MEMCOPY LINEAR &h010000, 1024 TO RECT &hB00000,32,32,640

Clock

  • SETDATE <year>, <month>, <day>
  • SETTIME <hour>, <minute>, <second>
  • DATE$()
  • TIME$()
  • TICKS()

Video

BitMaps

  • BITMAP <plane>, <visible>, <lut> [, <address>]
  • CLRBITMAP <plane>
  • FILL <plane>, <x0>, <y0>, <x1>, <y1>, <color>
  • LINE <plane>, <x0>, <y0>, <x1>, <y1>, <color>
  • PLOT <plane>, <column>, <row>, <color>

Colors

  • BGCOLOR <red>, <green>, <blue>
  • BORDER <visible> [, <red>, <green>, <blue> ]
  • PALETTE <lut>, <color>, <red>, <green>, <blue>
  • COLOR <foreground>, <background>

Sprites

  • SPRITE <number>, <lut> [, <address> ]
  • SPRITEAT <number>, <column>, <row>
  • SPRITESHOW <number>, <visible> [, <layer> ]

Tilemaps

  • TILEAT <number>, <x>, <y>
  • TILESET <number>, <lut>, <is_square>, <address>
  • TILESHOW <number>, <is_visible>

Misc

  • GRAPHICS <mode>
  • LOCATE <column>, <row>

Audio

  • VGM PLAY "FILENAME"
  • VGM STOP