add test program for char_draw
This commit is contained in:
parent
19b9feb02d
commit
09d7701c15
3 changed files with 25 additions and 11 deletions
11
wip-hugo/routines/text/char.inc
Normal file
11
wip-hugo/routines/text/char.inc
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
Character_generator_ROM = $D000
|
||||||
|
Y_pos_offset = $F9 ; 16-bit value (uses F8), reuses from Y_pos
|
||||||
|
X_pos_offset = $FA ; 16-bit value (uses F7)
|
||||||
|
X_pos = $FA
|
||||||
|
Y_pos = $F9
|
||||||
|
charset = $FB
|
||||||
|
code = $FE
|
||||||
|
petski_position = $FE ; 16-bit value (uses FF),reuses code:s memory
|
||||||
|
screen_position = $FC ; 16-bit value (uses FD)
|
||||||
|
;; copy
|
||||||
|
VIC_bank = $4000
|
|
@ -1,19 +1,11 @@
|
||||||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||||
;; petski: https://www.c64-wiki.com/wiki/File:ASCII-Codes.gif
|
;; petscii: https://www.c64-wiki.com/wiki/File:ASCII-Codes.gif
|
||||||
;;https://www.c64-wiki.com/wiki/Character_set
|
;;https://www.c64-wiki.com/wiki/Character_set
|
||||||
;; Takes in a PETSKI-code in CODE
|
;; Takes in a PETSCII-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; user-procedure :clobbers (A Y) :clobbers-arguments (0 3)
|
.proc char_draw; user-procedure :clobbers (A Y) :clobbers-arguments (0 3)
|
||||||
Character_generator_ROM = $D000
|
.include "char.inc"
|
||||||
Y_pos_offset = $F9 ; 16-bit value (uses F8), reuses from Y_pos
|
|
||||||
X_pos_offset = $FA ; 16-bit value (uses F7)
|
|
||||||
X_pos = $FA
|
|
||||||
Y_pos = $F9
|
|
||||||
charset = $FB
|
|
||||||
code = $FE
|
|
||||||
petski_position = $FE ; 16-bit value (uses FF),reuses code:s memory
|
|
||||||
screen_position = $FC ; 16-bit value (uses FD)
|
|
||||||
|
|
||||||
;#### TEMP INIT DATA ####
|
;#### TEMP INIT DATA ####
|
||||||
LDA #$10
|
LDA #$10
|
||||||
|
|
11
wip-hugo/routines/text/char_draw_test.s
Normal file
11
wip-hugo/routines/text/char_draw_test.s
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.scope char_draw_test
|
||||||
|
.include "char.inc"
|
||||||
|
LDA #$10
|
||||||
|
STA code
|
||||||
|
LDA #$10
|
||||||
|
LDA #04
|
||||||
|
STA X_pos
|
||||||
|
LDA #02
|
||||||
|
STA Y_pos
|
||||||
|
JSR char_drawj
|
||||||
|
.endscope
|
Loading…
Add table
Reference in a new issue