Move display memory back to $00 to make programming easy
This commit is contained in:
parent
01be57f772
commit
fdd63177f7
|
|
@ -1,6 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
"POINTER_TO_START_OF_DISPLAY_MEM": 32,
|
||||||
|
"POINTER_TO_START_OF_KEYPAD_MEM": 33,
|
||||||
"INITIAL_IP_ADDRESS": 48,
|
"INITIAL_IP_ADDRESS": 48,
|
||||||
"POINTER_TO_START_OF_DISPLAY_MEM": 0,
|
|
||||||
|
|
||||||
// max number of times to step the CPU,
|
// max number of times to step the CPU,
|
||||||
// to stop endless loops
|
// to stop endless loops
|
||||||
|
|
|
||||||
10
readme.md
10
readme.md
|
|
@ -62,11 +62,11 @@ Assemble and run, with debug output:
|
||||||
|
|
||||||
## Memory map / Peripherals
|
## Memory map / Peripherals
|
||||||
|
|
||||||
- `00 ` - pointer to screen memory
|
- `00-0F` - display (4x4)
|
||||||
- `01 ` - pointer to keypad memory
|
- `10-1F` - keypad? (details TBD)
|
||||||
- `02-0F` - reserved for future use
|
- `20 ` - pointer to display memory
|
||||||
- `10-1F` - display (4x4)
|
- `21 ` - pointer to keypad memory
|
||||||
- `20-2F` - keypad? (details TBD)
|
- `22-2F` - reserved for future use / variable storage
|
||||||
- `30 ` - initial value for IP
|
- `30 ` - initial value for IP
|
||||||
- `30-FF` - free
|
- `30-FF` - free
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
;; Fill display with $FF
|
;; Fill display with $FF
|
||||||
|
|
||||||
LDA $00
|
LDA $00 ; Start of display
|
||||||
STO $21 ; Pixel index
|
STO $21 ; Pixel index
|
||||||
|
|
||||||
; store the $FF that we'll use to fill the screen
|
; store the $FF that we'll use to fill the screen
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
;; test re-locating display memory
|
;; test re-locating display memory
|
||||||
LDA $10
|
LDA $10
|
||||||
STO $00 ; change pointer-to-display-memory to $10
|
STO $20 ; change pointer-to-display-memory to $10
|
||||||
STO $10
|
STO $10
|
||||||
STO $11
|
STO $11
|
||||||
STO $12
|
STO $12
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue