2014-08-29 19:10:50 +00:00
|
|
|
;
|
2014-09-09 04:18:35 +00:00
|
|
|
; exampleAsm.s
|
2014-08-29 19:28:00 +00:00
|
|
|
; Apple2BuildPipelineSample
|
2014-08-29 19:10:50 +00:00
|
|
|
;
|
|
|
|
; Part of a sample build pipeline for Apple ][ software development
|
|
|
|
;
|
|
|
|
; Created by Quinn Dunki on 8/15/14.
|
|
|
|
; One Girl, One Laptop Productions
|
|
|
|
; http://www.quinndunki.com
|
|
|
|
; http://www.quinndunki.com/blondihacks
|
|
|
|
;
|
|
|
|
|
2014-09-09 04:18:35 +00:00
|
|
|
.export _asmFunc
|
2014-08-29 19:10:50 +00:00
|
|
|
|
|
|
|
; Reserved locations
|
|
|
|
|
|
|
|
INVERSE = $32
|
|
|
|
|
|
|
|
|
|
|
|
; Constants
|
|
|
|
|
|
|
|
CHAR_NORMAL = $ff
|
|
|
|
CHAR_INVERSE = $3f
|
|
|
|
CHAR_FLASH = $7f
|
|
|
|
|
|
|
|
|
|
|
|
; ROM entry points
|
|
|
|
|
|
|
|
COUT = $fded
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-09 04:18:35 +00:00
|
|
|
; _asmFunc
|
2014-08-29 19:10:50 +00:00
|
|
|
|
2014-09-09 04:18:35 +00:00
|
|
|
_asmFunc:
|
2014-08-29 19:10:50 +00:00
|
|
|
lda #CHAR_FLASH
|
|
|
|
sta INVERSE
|
|
|
|
|
|
|
|
loop:
|
|
|
|
lda #'X' + $80
|
|
|
|
jsr COUT
|
|
|
|
jmp loop ; OMG so many Xs
|
|
|
|
|
|
|
|
|
|
|
|
|