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 .filenamespace Init
* = * "Init Core" * = * "Init Core"
// ------------------------------------ // ------------------------------------

View File

@ -1,5 +1,6 @@
#importonce #importonce
#import "../libs/module.asm" #import "../libs/module.asm"
#import "../libs/memory.asm"
// ------------------------------------ // ------------------------------------
// MACROS // MACROS
@ -7,7 +8,6 @@
.filenamespace Keyboard .filenamespace Keyboard
#import "../libs/memory.asm"
* = * "Keyboard Module" * = * "Keyboard Module"

View File

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

View File

@ -97,7 +97,6 @@ toDebug: {
scrollUp: { scrollUp: {
pha pha
MemoryClone(VIDEO_ADDR+40, VIDEO_ADDR+(COLUMN_NUM*(ROWS_NUM)), VIDEO_ADDR) MemoryClone(VIDEO_ADDR+40, VIDEO_ADDR+(COLUMN_NUM*(ROWS_NUM)), VIDEO_ADDR)
// clear last line // clear last line
lda #32 lda #32
ldx #40 ldx #40

View File

@ -79,6 +79,8 @@ toDebug: {
// MemMap.MEMORY.dest - Should contain the destination pointer // MemMap.MEMORY.dest - Should contain the destination pointer
// MemMap.MEMORY.size - Should contain the size to copy // MemMap.MEMORY.size - Should contain the size to copy
clone: { clone: {
stx MemMap.MEMORY.tmpX
sty MemMap.MEMORY.tmpY
sei sei
ldy #0 ldy #0
ldx MemMap.MEMORY.size ldx MemMap.MEMORY.size
@ -99,7 +101,10 @@ clone: {
dex dex
bne md3 bne md3
cli cli
md4: rts md4:
ldx MemMap.MEMORY.tmpX
ldy MemMap.MEMORY.tmpY
rts
} }
// Fill Memopry Range with byte loaded in A // Fill Memopry Range with byte loaded in A
@ -108,6 +113,8 @@ clone: {
// MemMap.MEMORY.size - Should contain the size to copy // MemMap.MEMORY.size - Should contain the size to copy
// A - The byte to fill memory with // A - The byte to fill memory with
fill: { fill: {
stx MemMap.MEMORY.tmpX
sty MemMap.MEMORY.tmpY
sei sei
ldy #0 ldy #0
ldx MemMap.MEMORY.size ldx MemMap.MEMORY.size
@ -127,7 +134,10 @@ fill: {
dex dex
bne md3 bne md3
cli cli
md4: rts md4:
ldx MemMap.MEMORY.tmpX
ldy MemMap.MEMORY.tmpY
rts
} }
// Clear Memory with 0 // Clear Memory with 0

View File

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

View File

@ -1,8 +1,11 @@
BasicUpstart2(start) .cpu _6502
// BasicUpstart2(start)
#import "./core/mem_map.asm" #import "./core/mem_map.asm"
* = $8000 "Main" * = $8000 "Main"
//------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------
.const MAIN_COLOR = $03 .const MAIN_COLOR = $03
.const BORDER_COLOR = $05 .const BORDER_COLOR = $05

View File

@ -80,7 +80,6 @@ done:
// STID Commands // STID Commands
cmdHelp: cmdHelp:
.break
PrintLine(helpString) PrintLine(helpString)
jmp done jmp done
@ -265,7 +264,7 @@ helpString:
.byte $8e .byte $8e
.text "r : hard reset" .text "r : hard reset"
.byte $8e .byte $8e
.text "z : zero page params" .text "v : modue versions"
.byte $8e .byte $8e
.text "----------------------" .text "----------------------"
.byte $8e, 0 .byte $8e, 0