Compare commits
2 commits
3dfbe05938
...
4f585183ce
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4f585183ce | ||
![]() |
6d859fba36 |
2 changed files with 8 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
||||||
;; Takes in a PETSKI-code in CODE
|
;; Takes in a PETSKI-code in CODE
|
||||||
;; And prints it ON X_pos, Y_pos
|
;; And prints it ON X_pos, Y_pos
|
||||||
;; Note that this is the real positions divided by 8
|
;; Note that this is the real positions divided by 8
|
||||||
.proc text
|
.proc char_draw
|
||||||
X_pos = $FA
|
X_pos = $FA
|
||||||
Y_pos = $F9
|
Y_pos = $F9
|
||||||
charset = $FB
|
charset = $FB
|
||||||
|
@ -26,14 +26,11 @@
|
||||||
;;We need the relative offset for bytes to read and write.
|
;;We need the relative offset for bytes to read and write.
|
||||||
;; This is code *10 because 8byte is one character
|
;; This is code *10 because 8byte is one character
|
||||||
;; *10 = 2*2*2 + 2
|
;; *10 = 2*2*2 + 2
|
||||||
ASL code ;Will never owerflow 8byte
|
ASL code ;Will never owerflow, therefore 8byte
|
||||||
LDY code
|
Mult_16 >petski_position, <petski_position, !
|
||||||
Mult_16 >petski_position, <petski_position ; May overflow 8byte (therefore using 16)
|
Mult_16 >petski_position, <petski_position, !
|
||||||
Mult_16 >petski_position, <petski_position ; May overflow 8byte (therefore using 16)
|
;; Add starting position
|
||||||
;TYA
|
Add_16 >petski_position, <petski_position, #<Character_generator_ROM , #>Character_generator_ROM, !
|
||||||
;Add_16_A >petski_position, <petski_position, #$00
|
|
||||||
|
|
||||||
Add_16 >petski_position, <petski_position, #<Character_generator_ROM , #>Character_generator_ROM
|
|
||||||
|
|
||||||
;;Calculate screen_position to use
|
;;Calculate screen_position to use
|
||||||
Mov_16 >screen_position, <screen_position, #<VIC_bank, #>VIC_bank
|
Mov_16 >screen_position, <screen_position, #<VIC_bank, #>VIC_bank
|
|
@ -4,12 +4,12 @@
|
||||||
|
|
||||||
.include "STARTUP.s"
|
.include "STARTUP.s"
|
||||||
;.include "routines/line/line_test_time.s"
|
;.include "routines/line/line_test_time.s"
|
||||||
jsr text
|
jsr char_draw
|
||||||
;;This is used by .s files to terminate nicely without reading includes at the end!
|
;;This is used by .s files to terminate nicely without reading includes at the end!
|
||||||
exit:
|
exit:
|
||||||
jmp exit
|
jmp exit
|
||||||
|
|
||||||
.include "routines/text/text.s"
|
.include "routines/text/char_draw.s"
|
||||||
.include "routines/memory/memset.s"
|
.include "routines/memory/memset.s"
|
||||||
.include "routines/memory/pixel_draw.s"
|
.include "routines/memory/pixel_draw.s"
|
||||||
.include "routines/memory/memcpy.s"
|
.include "routines/memory/memcpy.s"
|
||||||
|
|
Loading…
Add table
Reference in a new issue