added help text for head align tool
This commit is contained in:
1 parent
cefa6ec1fb
commit
d8248db843
3 files changed
+145
-9
No files matched your search
@@ -0,0 +1,133 @@
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# M65 KERNAL_1 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Tape head alignemnt tool - prints out a help message on screen
|
||||
//
|
||||
|
||||
|
||||
#if CONFIG_TAPE_HEAD_ALIGN
|
||||
|
||||
|
||||
tape_head_align_print_help:
|
||||
|
||||
// Make screen font visible
|
||||
|
||||
lda CPU_R6510
|
||||
pha
|
||||
and #%11111011
|
||||
sta CPU_R6510
|
||||
|
||||
// Print help message
|
||||
|
||||
ldy #$00
|
||||
|
||||
// Retrieve address
|
||||
!:
|
||||
lda tape_head_align_help_text, y
|
||||
iny
|
||||
cmp #$FF
|
||||
beq tape_head_align_print_end
|
||||
sta EAL+0
|
||||
|
||||
lda tape_head_align_help_text, y
|
||||
iny
|
||||
sta EAL+1
|
||||
!:
|
||||
// Retrieve and print character
|
||||
|
||||
lda tape_head_align_help_text, y
|
||||
iny
|
||||
cmp #$FF
|
||||
beq !--
|
||||
|
||||
sty __ha_storage
|
||||
jsr tape_head_align_print_char
|
||||
ldy __ha_storage
|
||||
|
||||
bne !- // branch alwats
|
||||
|
||||
|
||||
tape_head_align_print_end:
|
||||
|
||||
// Restore normal memory configuration and quit
|
||||
|
||||
pla
|
||||
sta CPU_R6510
|
||||
rts
|
||||
|
||||
tape_head_align_print_string:
|
||||
|
||||
|
||||
|
||||
tape_head_align_print_char:
|
||||
|
||||
// Calculate start address of character in .A
|
||||
|
||||
sta SAL+0
|
||||
lda #$00
|
||||
sta SAL+1
|
||||
|
||||
asl SAL+0
|
||||
rol SAL+1
|
||||
asl SAL+0
|
||||
rol SAL+1
|
||||
asl SAL+0
|
||||
rol SAL+1
|
||||
|
||||
clc
|
||||
lda SAL+1
|
||||
adc #$D0
|
||||
sta SAL+1
|
||||
|
||||
// Print out the character
|
||||
|
||||
ldy #$07
|
||||
!:
|
||||
lda (SAL), y
|
||||
sta (EAL), y
|
||||
dey
|
||||
bpl !-
|
||||
|
||||
// Prepare EAL for the next character
|
||||
|
||||
lda EAL+0
|
||||
clc
|
||||
adc #$08
|
||||
sta EAL+0
|
||||
bne !+
|
||||
inc EAL+1
|
||||
!:
|
||||
rts
|
||||
|
||||
|
||||
//
|
||||
// Strings to print
|
||||
//
|
||||
|
||||
.encoding "screencode_upper"
|
||||
|
||||
|
||||
tape_head_align_help_text:
|
||||
|
||||
.word $2000 + (40 * 8) * 1 + 8 * 2
|
||||
.text "ADJUST HEAD FOR MINIMUM SIGNAL NOISE"
|
||||
.byte $FF
|
||||
|
||||
.word $2000 + (40 * 8) * 5 + 8 * 2
|
||||
.text "IF THE DECK HAS A PITCH (SPEED) KNOB"
|
||||
.byte $FF
|
||||
|
||||
.word $2000 + (40 * 8) * 6 + 8 * 6
|
||||
.text "USE IT TO PLACE DOTTED LINES"
|
||||
.byte $FF
|
||||
|
||||
.word $2000 + (40 * 8) * 7 + 8 * 3
|
||||
.text "EXACTLY HALF A WAY BETWEEN SIGNALS"
|
||||
.byte $FF
|
||||
|
||||
.byte $FF
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user