Rename memory operation and create files for later text drawing stuff
This commit is contained in:
parent
46409e5eff
commit
b3887a8e0d
8 changed files with 28 additions and 7 deletions
|
@ -66,7 +66,7 @@ LDA #<$5f3f
|
|||
STA $FD
|
||||
|
||||
LDA #$0
|
||||
jsr memory_rec
|
||||
jsr memset
|
||||
|
||||
;;Sets the screen color to black and white
|
||||
LDA #>Screen_RAM
|
||||
|
@ -80,7 +80,7 @@ LDA #<Screen_RAM_end
|
|||
STA $FD
|
||||
|
||||
LDA #%11110000
|
||||
jsr memory_rec
|
||||
jsr memset
|
||||
|
||||
;;Converting basic ROM to RAM mohahah
|
||||
LDA #$36 ; 00110110
|
||||
|
|
20
wip-hugo/c64-asm_mod.cfg
Normal file
20
wip-hugo/c64-asm_mod.cfg
Normal file
|
@ -0,0 +1,20 @@
|
|||
FEATURES {
|
||||
STARTADDRESS: default = $0400;
|
||||
}
|
||||
SYMBOLS {
|
||||
__LOADADDR__: type = import;
|
||||
}
|
||||
MEMORY {
|
||||
ZP: file = "", start = $0002, size = $00FE, define = yes;
|
||||
LOADADDR: file = %O, start = %S - 2, size = $0002;
|
||||
MAIN: file = %O, start = %S, size = $D000 - %S;
|
||||
}
|
||||
SEGMENTS {
|
||||
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
||||
LOADADDR: load = LOADADDR, type = ro;
|
||||
EXEHDR: load = MAIN, type = ro, optional = yes;
|
||||
CODE: load = MAIN, type = rw;
|
||||
RODATA: load = MAIN, type = ro, optional = yes;
|
||||
DATA: load = MAIN, type = rw, optional = yes;
|
||||
BSS: load = MAIN, type = bss, optional = yes, define = yes;
|
||||
}
|
|
@ -57,7 +57,7 @@ end:
|
|||
STA $FD
|
||||
|
||||
LDA #$0
|
||||
jsr memory_rec
|
||||
jsr memset
|
||||
|
||||
LDA #$00
|
||||
STA X_pos_
|
||||
|
|
|
@ -44,7 +44,7 @@ end__:
|
|||
STA $FD
|
||||
|
||||
LDA #$0
|
||||
jsr memory_rec
|
||||
jsr memset
|
||||
|
||||
jmp exit
|
||||
|
||||
|
|
0
wip-hugo/routines/memory/memcpy.s
Normal file
0
wip-hugo/routines/memory/memcpy.s
Normal file
|
@ -1,8 +1,8 @@
|
|||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||
|
||||
;;##### HANDLES BIG MEMORY MANAGMENTS ############
|
||||
;;recursive write to memory.
|
||||
.proc memory_rec
|
||||
;;Sets big barts of memory to a certain byte.
|
||||
.proc memset
|
||||
Address_start = $FBFC
|
||||
Address_end = $FDFE
|
||||
;;Writes data in A
|
1
wip-hugo/routines/text/text.s
Normal file
1
wip-hugo/routines/text/text.s
Normal file
|
@ -0,0 +1 @@
|
|||
;; petski: https://www.c64-wiki.com/wiki/File:ASCII-Codes.gif
|
|
@ -8,5 +8,5 @@
|
|||
exit:
|
||||
jmp exit
|
||||
|
||||
.include "routines/memory/memory_rec.s"
|
||||
.include "routines/memory/memset.s"
|
||||
.include "routines/memory/pixel_draw.s"
|
||||
|
|
Loading…
Add table
Reference in a new issue