This commit is contained in:
stid 2020-01-12 12:57:01 -08:00
parent faa93e90a8
commit 411f75b5aa
8 changed files with 20 additions and 10 deletions

View File

@ -9,8 +9,6 @@
.filenamespace Init
* = * "Init Core"
// ------------------------------------

View File

@ -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"

View File

@ -38,6 +38,8 @@
from: .word 0
dest: .word 0
size: .word 0
tmpX: .byte 0
tmpY: .byte 0
}
.namespace MODULE {

View File

@ -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

View File

@ -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

View File

@ -35,7 +35,6 @@ toDebug: {
//------------------------------------------------------------------------------------
printVersion: {
.break
sta MemMap.MODULE.versionPtr
stx MemMap.MODULE.versionPtr+1
ldy #0

View File

@ -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

View File

@ -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