1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00
8bitworkshop/presets/vectrex/skeleton.xasm6809
2020-06-12 23:00:22 -05:00

48 lines
2.6 KiB
Plaintext

;***************************************************************************
; DEFINE SECTION
;***************************************************************************
Intensity_5F EQU $F2A5 ; BIOS Intensity routine
Print_Str_d EQU $F37A ; BIOS print routine
Wait_Recal EQU $F192 ; BIOS recalibration
music1 EQU $FF8F ; address of a (BIOS ROM)
; music
; start of vectrex memory with cartridge name...
ORG 0
;***************************************************************************
; HEADER SECTION
;***************************************************************************
FCC "g GCE 2020"
DB $80 ; 'g' is copyright sign
DW music1 ; music from the rom
DB $F8
DB $50
DB $20
DB -$56 ; height, width, rel y, rel x
; (from 0,0)
FCC "GAME TITLE"
DB $80 ; some game information,
; ending with $80
DB 0 ; end of game header
;***************************************************************************
; CODE SECTION
;***************************************************************************
; here the cartridge program starts off
main:
JSR Wait_Recal ; Vectrex BIOS recalibration
JSR Intensity_5F ; Sets the intensity of the
; vector beam to $5f
LDU #hello ; address of string
LDA #$10 ; Text position relative Y
LDB #-$50 ; Text position relative X
JSR Print_Str_d ; Vectrex BIOS print routine
BRA main ; and repeat forever
;***************************************************************************
; DATA SECTION
;***************************************************************************
hello:
FCC "HELLO WORLD" ; only capital letters
DB $80 ; $80 is end of string
;***************************************************************************
END main
;***************************************************************************