; CHRIS: CHANGE THE NOP TO A "CSH"!! .include "INC\My_startup.asm" .mlist .list ; ---- ASCII_VRAM .equ $1000 TONG_VRAM .equ $1800 FREESPACE .equ $2600 ;a dummy 256 bytes for safe modification TII_RAM .equ $3020 EXIT_RAM .equ TII_RAM+8 RAM_BUF .equ $3100 ED_OFFSET .equ 4 BURNTIME_DEF .equ $1762 TXX1_LEN .equ $46 ;1-scanline length for block transfers TXX2_LEN .equ $92 ;2-scanline length for block transfers TXX3_LEN .equ $DE ;3-scanline length for block transfers TXX4_LEN .equ $12A ;4-scanline length for block transfers ;TXX1V_LEN .equ $36 ;1-scanline length for VRAM block transfers ;TXX2V_LEN .equ TXX1V_LEN ;$36 ;1-scanline length for VRAM block transfers ; Zero-page variables .zp VBPass: ds 1 InsType: ds 1 ;0=2 cycles, up to 8 (more? cycles) InsNumber: ds 1 ;FF = off, 0...xx = examining one instruction? IsRAM: ds 1 ;8x = ON = run test inside RAM. delay1: ds 1 ;X delay for each scanline cycle loopcnt1: ds 1 scanline_add: ds 2 ;address for writing to RAM burntime: ds 2 ;first delay after VBlank all_zeroes: ds 1 ;fill with 0s for BBSn tests all_ones: ds 1 ;fill with 1s for BBSn tests nmi_count: ds 1 ;Counter for NMIs... VCE_copy: ds 1 jmp_loc1: .ds 2 ;a place to store the indirect JMP address. jmp_loc2: .ds 2 ram_rts: .ds 1 ;an RTS instruction in RAM safe_zp: .ds 2 ;a safe address to modify .bss satb .ds 512 ; the local SATB ;... ;--- CODE area ---------- .code .bank START_BANK main: SCREEN_OFF tma #7 ;get boot bank inc a ;point to routines tam #4 ;map into $8000 inc a ;point to routines tam #5 ;map into $A000 inc a tam #2 ;map FONT into $4000 jsr setup_video tii TIICode,TII_RAM,$10 stw #BURNTIME_DEF,