Compare commits

..

4 commits

Author SHA1 Message Date
hugova
ddd2057ff4 add hinting for user side compiler 2025-05-02 22:02:55 +02:00
hugova
4c604c8a47 fix spelling 2025-05-02 21:57:59 +02:00
hugova
cb23f4ec58 update gitignore 2025-05-02 21:52:24 +02:00
hugova
830c4d135d Add small minute changes 2025-05-02 21:51:49 +02:00
8 changed files with 14 additions and 11 deletions

3
.gitignore vendored
View file

@ -4,4 +4,5 @@
*.list
*.lst
*.note
run.sh
*.sh

View file

@ -1,6 +1,7 @@
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
.proc line; X_pos =< X_end skall alltid gälla
.proc line; user-procedure :clobbers (A X Y) :clobbers-arguments 4
;X_pos =< X_end skall alltid gälla
.include "line.inc"
;;dx
SEC

View file

@ -2,7 +2,7 @@
;;Screen print. Draws a pixel at a specified position.
;; Destroys A X Y
.proc pixel_draw; Draws a pixel at [Y = FB , X = FC, FD]. Y = 0 - 320, X= 0 - 200
.proc pixel_draw;; Draws a pixel at [Y = FB , X = FC, FD]. Y = 0 - 320, X= 0 - 200
.include "mem.inc"
Bitmap = $4000
Bitmap_end = $5F3F

View file

@ -4,7 +4,7 @@
;; Takes in a PETSKI-code in CODE
;; And prints it ON X_pos, Y_pos
;; Note that this is the real positions divided by 8
.proc char_draw
.proc char_draw; user-procedure :clobbers (A Y) :clobbers-arguments (0 3)
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)
@ -24,7 +24,7 @@
STA Y_pos
;;Do arithimatic to know where to read and write bytes.
initial:
initial:
;We first need to clear some memory
LDA #$00
STA petski_position + 1

View file

@ -17,7 +17,7 @@ BC = $E3
V_l = $E2 ;16-bit value (uses E3)
V_r = $E0 ;16-bit value (used E1)
dy_2_l = $DE ;16-bit value (used DF)
dy_2_l = $DC ;16-bit value (used DD)
dy_2_r = $DC ;16-bit value (used DD)
D_l = $DA ;16-bit value (uses DB)
D_r = $D8 ;16-bit value (uses D9)

View file

@ -1,7 +1,7 @@
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
;; Subroutine for drawing a filld triangle.
.proc triangle
.proc triangle; user-procedure :clobbers (A X Y) :clobbers-arguments 6
;; It takes in values from A_X, A_Y, B_X, B_Y C_X, C_Y, see triangle.inc
.include "triangle.inc"

View file

@ -3,8 +3,8 @@ killall x64sc
#Note that program start at $080D
cl65 -o file.prg -u __EXEHDR__ -t c64 -C c64-asm.cfg -l file.list source.s \
&& nohup flatpak run net.sf.VICE -windowypos 0 -windowxpos 960 -windowwidth 945 -windowheight 720 file.prg </dev/null &>/dev/null &
#&& nohup flatpak run net.sf.VICE -windowypos 0 -windowxpos 960 -windowwidth 945 -windowheight 720 file.prg </dev/null &>/dev/null &
sleep 2
rm source.o
rm file.prg
#rm file.prg

View file

@ -6,9 +6,10 @@
.include "routines/memory/mem.inc"
;;Code to run
.include "STARTUP.s"
;.include "routines/line/line_test.s"
.include "dubbel_buffer/raster_irqs.s"
.include "routines/line/line_test.s"
;.include "routines/memory/memcpy_test.s"
.include "routines/triangle/triangle_test.s"
;.include "routines/triangle/triangle_test.s"
exit:
JMP exit
.include "routines/line/line.s"