Compare commits

..

No commits in common. "4f585183ceb4807ad50e3d985762d6ab0c5da483" and "3dfbe059384ffd55fafc2985c1ccb4aa03e7fb83" have entirely different histories.

2 changed files with 11 additions and 8 deletions

View file

@ -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 char_draw .proc text
X_pos = $FA X_pos = $FA
Y_pos = $F9 Y_pos = $F9
charset = $FB charset = $FB
@ -26,11 +26,14 @@
;;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, therefore 8byte ASL code ;Will never owerflow 8byte
Mult_16 >petski_position, <petski_position, ! LDY code
Mult_16 >petski_position, <petski_position, ! Mult_16 >petski_position, <petski_position ; May overflow 8byte (therefore using 16)
;; Add starting position Mult_16 >petski_position, <petski_position ; May overflow 8byte (therefore using 16)
Add_16 >petski_position, <petski_position, #<Character_generator_ROM , #>Character_generator_ROM, ! ;TYA
;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

View file

@ -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 char_draw jsr text
;;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/char_draw.s" .include "routines/text/text.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"