mirror of
https://github.com/stid/woz64.git
synced 2025-01-04 19:29:36 +00:00
Fix bugs
This commit is contained in:
parent
faa93e90a8
commit
411f75b5aa
@ -9,8 +9,6 @@
|
||||
|
||||
.filenamespace Init
|
||||
|
||||
|
||||
|
||||
* = * "Init Core"
|
||||
|
||||
// ------------------------------------
|
||||
|
@ -1,5 +1,6 @@
|
||||
#importonce
|
||||
#import "../libs/module.asm"
|
||||
#import "../libs/memory.asm"
|
||||
|
||||
// ------------------------------------
|
||||
// MACROS
|
||||
@ -7,7 +8,6 @@
|
||||
|
||||
|
||||
.filenamespace Keyboard
|
||||
#import "../libs/memory.asm"
|
||||
|
||||
|
||||
* = * "Keyboard Module"
|
||||
|
@ -38,6 +38,8 @@
|
||||
from: .word 0
|
||||
dest: .word 0
|
||||
size: .word 0
|
||||
tmpX: .byte 0
|
||||
tmpY: .byte 0
|
||||
}
|
||||
|
||||
.namespace MODULE {
|
||||
|
@ -97,7 +97,6 @@ toDebug: {
|
||||
scrollUp: {
|
||||
pha
|
||||
MemoryClone(VIDEO_ADDR+40, VIDEO_ADDR+(COLUMN_NUM*(ROWS_NUM)), VIDEO_ADDR)
|
||||
|
||||
// clear last line
|
||||
lda #32
|
||||
ldx #40
|
||||
|
@ -79,6 +79,8 @@ toDebug: {
|
||||
// MemMap.MEMORY.dest - Should contain the destination pointer
|
||||
// MemMap.MEMORY.size - Should contain the size to copy
|
||||
clone: {
|
||||
stx MemMap.MEMORY.tmpX
|
||||
sty MemMap.MEMORY.tmpY
|
||||
sei
|
||||
ldy #0
|
||||
ldx MemMap.MEMORY.size
|
||||
@ -99,7 +101,10 @@ clone: {
|
||||
dex
|
||||
bne md3
|
||||
cli
|
||||
md4: rts
|
||||
md4:
|
||||
ldx MemMap.MEMORY.tmpX
|
||||
ldy MemMap.MEMORY.tmpY
|
||||
rts
|
||||
}
|
||||
|
||||
// Fill Memopry Range with byte loaded in A
|
||||
@ -108,6 +113,8 @@ clone: {
|
||||
// MemMap.MEMORY.size - Should contain the size to copy
|
||||
// A - The byte to fill memory with
|
||||
fill: {
|
||||
stx MemMap.MEMORY.tmpX
|
||||
sty MemMap.MEMORY.tmpY
|
||||
sei
|
||||
ldy #0
|
||||
ldx MemMap.MEMORY.size
|
||||
@ -127,7 +134,10 @@ fill: {
|
||||
dex
|
||||
bne md3
|
||||
cli
|
||||
md4: rts
|
||||
md4:
|
||||
ldx MemMap.MEMORY.tmpX
|
||||
ldy MemMap.MEMORY.tmpY
|
||||
rts
|
||||
}
|
||||
|
||||
// Clear Memory with 0
|
||||
|
@ -35,7 +35,6 @@ toDebug: {
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
printVersion: {
|
||||
.break
|
||||
sta MemMap.MODULE.versionPtr
|
||||
stx MemMap.MODULE.versionPtr+1
|
||||
ldy #0
|
||||
|
5
main.asm
5
main.asm
@ -1,8 +1,11 @@
|
||||
BasicUpstart2(start)
|
||||
.cpu _6502
|
||||
|
||||
// BasicUpstart2(start)
|
||||
#import "./core/mem_map.asm"
|
||||
|
||||
* = $8000 "Main"
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
.const MAIN_COLOR = $03
|
||||
.const BORDER_COLOR = $05
|
||||
|
@ -80,7 +80,6 @@ done:
|
||||
|
||||
// STID Commands
|
||||
cmdHelp:
|
||||
.break
|
||||
PrintLine(helpString)
|
||||
jmp done
|
||||
|
||||
@ -265,7 +264,7 @@ helpString:
|
||||
.byte $8e
|
||||
.text "r : hard reset"
|
||||
.byte $8e
|
||||
.text "z : zero page params"
|
||||
.text "v : modue versions"
|
||||
.byte $8e
|
||||
.text "----------------------"
|
||||
.byte $8e, 0
|
||||
|
Loading…
Reference in New Issue
Block a user