decided not to change mkword() again, added note to docs about argument order

This commit is contained in:
Irmen de Jong 2020-12-15 22:25:06 +01:00
parent cd28d0c0e0
commit e0315bffdc
3 changed files with 6 additions and 1 deletions

View File

@ -836,6 +836,12 @@ mkword(msb, lsb)
Efficiently create a word value from two bytes (the msb and the lsb). Avoids multiplication and shifting.
So mkword($80, $22) results in $8022.
.. note::
The arguments to the mkword() function are in 'natural' order that is first the msb then the lsb.
Don't get confused by how the system actually stores this 16-bit word value in memory (which is
in little-endian format, so lsb first then msb)
rnd()
returns a pseudo-random byte from 0..255

View File

@ -2,7 +2,6 @@
TODO
====
- (thinking about) reverse mkword() again because of consistency with the platform and AY register pairs...??
- see if we can group some errors together for instance the (now single) errors about unidentified symbols
- Cx16 target: support full-screen 640x480 and 320x240 graphics? That requires our own custom graphics routines though to draw lines.
- hoist all variable declarations up to the subroutine scope *before* even the constant folding takes place (to avoid undefined symbol errors when referring to a variable from another nested scope in the subroutine)

Binary file not shown.