fixed distrubances in head align tool
This commit is contained in:
1 parent
023a21c3ef
commit
cefa6ec1fb
5 files changed
+147
-102
No files matched your search
@@ -0,0 +1,70 @@
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# M65 KERNAL_1 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Tape head alignemnt tool - draw helper symbols
|
||||
//
|
||||
|
||||
|
||||
#if CONFIG_TAPE_HEAD_ALIGN
|
||||
|
||||
|
||||
tape_head_align_apply_gfx:
|
||||
|
||||
// Apply GFX effects
|
||||
|
||||
lda __ha_gfxflag
|
||||
inc __ha_gfxflag
|
||||
clc
|
||||
adc #$08
|
||||
and #%00001100
|
||||
bne !+
|
||||
ldy #%11110001
|
||||
lda #%10001111
|
||||
bne !++
|
||||
!:
|
||||
ldy #%00000001
|
||||
lda #%10000000
|
||||
!:
|
||||
ora __ha_chart + 7 + 8 * 0
|
||||
sta __ha_chart + 7 + 8 * 0
|
||||
|
||||
tya
|
||||
ora __ha_chart + 7 + 8 * 31
|
||||
sta __ha_chart + 7 + 8 * 31
|
||||
|
||||
// Draw helper lines
|
||||
|
||||
lda __ha_gfxflag
|
||||
and #%00000010
|
||||
beq !+
|
||||
|
||||
lda #%00010000
|
||||
ora __ha_chart + 7 + 8 * 1
|
||||
sta __ha_chart + 7 + 8 * 1
|
||||
|
||||
lda #%00001000
|
||||
ora __ha_chart + 7 + 8 * 30
|
||||
sta __ha_chart + 7 + 8 * 30
|
||||
|
||||
// For normal
|
||||
|
||||
lda #%00000001
|
||||
ora __ha_chart + 7 + 8 * 6
|
||||
sta __ha_chart + 7 + 8 * 6
|
||||
|
||||
lda #%00000001
|
||||
ora __ha_chart + 7 + 8 * 13
|
||||
sta __ha_chart + 7 + 8 * 13
|
||||
|
||||
// For turbo
|
||||
|
||||
lda #%00010000
|
||||
ora __ha_chart + 7 + 8 * 21
|
||||
sta __ha_chart + 7 + 8 * 21
|
||||
!:
|
||||
rts
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user