Compare commits
No commits in common. "c076aa2055c4ae071200eed1a06f129f295feea7" and "4dfde387e404607bdeda9bf1f845145ef27e2cc6" have entirely different histories.
c076aa2055
...
4dfde387e4
103 changed files with 6 additions and 56 deletions
|
@ -1,45 +0,0 @@
|
||||||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
|
||||||
.scope mainsetup
|
|
||||||
USERPROG = $C000
|
|
||||||
.repeat 4, I
|
|
||||||
ldy #$00
|
|
||||||
:
|
|
||||||
lda batch_userprog+(I*256),Y
|
|
||||||
sta USERPROG+(I*256),Y
|
|
||||||
dey
|
|
||||||
bne :-
|
|
||||||
.endrep
|
|
||||||
.endscope
|
|
||||||
|
|
||||||
.scope mainloop
|
|
||||||
ml:
|
|
||||||
USERPROG = $C000
|
|
||||||
RASTER = $D012
|
|
||||||
;; Currently no code for fetching new programs, since we're testing with
|
|
||||||
;; batch compiled version of the whole to begin with.
|
|
||||||
|
|
||||||
;; Bank in character ROM
|
|
||||||
lda #%11111011
|
|
||||||
and $01
|
|
||||||
sta $01
|
|
||||||
|
|
||||||
jsr USERPROG
|
|
||||||
|
|
||||||
;; Bank out character ROM, I/O in
|
|
||||||
lda #%00000100
|
|
||||||
ora $01
|
|
||||||
sta $01
|
|
||||||
@framewait:
|
|
||||||
ldy RASTER
|
|
||||||
cpy #$66
|
|
||||||
beq @framewait
|
|
||||||
inc FRAMECOUNT
|
|
||||||
jmp ml
|
|
||||||
.endscope
|
|
||||||
|
|
||||||
.proc time ; user-procedure
|
|
||||||
lda FRAMECOUNT
|
|
||||||
rts
|
|
||||||
.endproc
|
|
||||||
|
|
||||||
FRAMECOUNT: .byte 0
|
|
|
@ -50,8 +50,8 @@
|
||||||
;; TODO: Handle case of too many arguments (? not realistically needed)
|
;; TODO: Handle case of too many arguments (? not realistically needed)
|
||||||
t)
|
t)
|
||||||
|
|
||||||
(defparameter +argvec-offset+ #xF0)
|
(defparameter +argvec-offset+ #x00)
|
||||||
(defparameter +varvec-offset+ #x20)
|
(defparameter +varvec-offset+ #x08)
|
||||||
|
|
||||||
(defmacro with-variable-allocations (allocations &body body)
|
(defmacro with-variable-allocations (allocations &body body)
|
||||||
`(let ((*variable-allocations* (make-hash-table)))
|
`(let ((*variable-allocations* (make-hash-table)))
|
|
@ -68,8 +68,8 @@
|
||||||
(parse-asm-declaration main-text)
|
(parse-asm-declaration main-text)
|
||||||
(list name address declaration)))))
|
(list name address declaration)))))
|
||||||
|
|
||||||
(defparameter *program-listing-filepath* #P"../host/build/program.lst")
|
(defparameter *program-listing-filepath* #P"../../wip-hugo/program.lst")
|
||||||
(defparameter *program-build-filepath* #P"../host/build.sh")
|
(defparameter *program-build-filepath* #P"../../wip-hugo/build.sh")
|
||||||
|
|
||||||
(defun check-for-asm-build-script ()
|
(defun check-for-asm-build-script ()
|
||||||
(do ((path *program-build-filepath*))
|
(do ((path *program-build-filepath*))
|
|
@ -1,6 +1,6 @@
|
||||||
# !/bin/bash
|
# !/bin/bash
|
||||||
#Note that program start at $080D
|
#Note that program start at $080D
|
||||||
cl65 -o build/host.prg -u __EXEHDR__ -t c64 -C c64-asm.cfg -l build/program.lst source.s -Ln build/program.lbl \
|
cl65 -o build/file.prg -u __EXEHDR__ -t c64 -C c64-asm.cfg -l build/program.lst source.s -Ln build/program.lbl \
|
||||||
|
|
||||||
#VICE do not like -
|
#VICE do not like -
|
||||||
sed -i 's/-/m/g' program.lbl
|
sed -i 's/-/m/g' program.lbl
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue