2023-08-23 20:18:49 +00:00
|
|
|
; Fake BIOS screen
|
|
|
|
; for another project
|
|
|
|
|
|
|
|
.include "zp.inc"
|
|
|
|
.include "hardware.inc"
|
|
|
|
|
|
|
|
|
|
|
|
bios_test:
|
|
|
|
;===================
|
|
|
|
; set graphics mode
|
|
|
|
;===================
|
|
|
|
jsr HOME
|
|
|
|
|
|
|
|
bit HIRES
|
|
|
|
bit FULLGR
|
|
|
|
bit SET_GR
|
|
|
|
bit PAGE1
|
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
jsr build_tables
|
|
|
|
|
2023-08-23 20:18:49 +00:00
|
|
|
;===================
|
|
|
|
; Load graphics
|
|
|
|
;===================
|
|
|
|
|
|
|
|
lda #<graphics_data
|
|
|
|
sta ZX0_src
|
|
|
|
lda #>graphics_data
|
|
|
|
sta ZX0_src+1
|
|
|
|
|
|
|
|
lda #$20 ; temporarily load to $2000
|
|
|
|
|
|
|
|
jsr full_decomp
|
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
; test 1
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
lda #<test1
|
|
|
|
ldy #>test1
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #1
|
2023-08-24 01:07:25 +00:00
|
|
|
stx CV
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
ldx #0
|
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
; test 2
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
lda #<test2
|
|
|
|
ldy #>test2
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #3
|
2023-08-24 01:07:25 +00:00
|
|
|
stx CV
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
ldx #0
|
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
; test 3
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
lda #<test3
|
|
|
|
ldy #>test3
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #5
|
2023-08-24 01:07:25 +00:00
|
|
|
stx CV
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
ldx #0
|
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
jsr DrawCondensedString
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
; test 4
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
lda #<test4
|
|
|
|
ldy #>test4
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #7
|
2023-08-24 01:07:25 +00:00
|
|
|
stx CV
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #0
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
jsr DrawCondensedString
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
; test 5
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
lda #<test5
|
|
|
|
ldy #>test5
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #9
|
2023-08-24 01:07:25 +00:00
|
|
|
stx CV
|
2023-08-23 23:47:33 +00:00
|
|
|
ldx #0
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-23 23:47:33 +00:00
|
|
|
jsr DrawCondensedString
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end:
|
2023-08-23 23:47:33 +00:00
|
|
|
jmp end
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
test1:
|
2023-08-23 23:47:33 +00:00
|
|
|
; 0123456789012345678901234567890123456789
|
|
|
|
.byte 39,"PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS!"
|
2023-08-23 20:18:49 +00:00
|
|
|
test2:
|
2023-08-23 23:47:33 +00:00
|
|
|
.byte 39,"pack my box with five dozen liquor jugs?"
|
2023-08-23 20:18:49 +00:00
|
|
|
test3:
|
2023-08-23 23:47:33 +00:00
|
|
|
.byte 24,"This is a HGR font test."
|
|
|
|
test4:
|
|
|
|
.byte 38,"0123456789)(*&^%$#@!`~<>,./';:[]{}\|_+="
|
|
|
|
test5:
|
|
|
|
.byte 17,"@/\/\/\/\______ |"
|
2023-08-23 20:18:49 +00:00
|
|
|
|
2023-08-24 01:07:25 +00:00
|
|
|
.include "font_4am_condensed.s"
|
|
|
|
.include "font_4am_condensed_data.s"
|
2023-08-23 20:18:49 +00:00
|
|
|
|
|
|
|
.include "zx02_optim.s"
|
|
|
|
|
|
|
|
graphics_data:
|
|
|
|
.incbin "graphics/a2_energy.hgr.zx02"
|
2023-08-23 23:47:33 +00:00
|
|
|
|
2023-08-24 00:02:57 +00:00
|
|
|
hposn_low = $1713 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
|
|
|
hposn_high = $1800 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
2023-08-23 23:47:33 +00:00
|
|
|
|
2023-08-24 00:02:57 +00:00
|
|
|
.include "hgr_table.s"
|
2023-08-23 23:47:33 +00:00
|
|
|
|
|
|
|
|