diff --git a/samples/apple2gs/gsos/Makefile b/samples/apple2gs/gsos/Makefile
new file mode 100644
index 0000000..2709a7c
--- /dev/null
+++ b/samples/apple2gs/gsos/Makefile
@@ -0,0 +1,91 @@
+#
+# fun2gs/Makefile
+#
+
+# This makefile was created by Jason Andersen
+#
+# I build on Windows-10 64-bit, this makefile is designed to run under
+# a Windows-10 Command Prompt, and makes use of DOS shell commands
+#
+# In order to build this you need x65
+#
+# https://github.com/Sakrac/x65
+#
+# As far a free stuff, I setup a c:\bin directory, in my path
+# the following packages and executables are in there
+#
+# Fine Tools from Brutal Deluxe
+# http://www.brutaldeluxe.fr/products/crossdevtools/
+# Cadius.exe
+# Merlin32.exe
+# OMFAnalyzer.exe
+# LZ4.exe
+#
+# gnumake-4.2.1-x64.exe (with a symbolic link that aliases this to "make")
+#
+# https://apple2.gs/plus/
+# gsplus32.exe (KEGS based GS Emulator fork by Dagen Brock)
+# I configure this to boot the xrick.po image directly
+# once that's done "make run" will build, update the disk image
+# and boot into xrick2gs.
+#
+
+# Make and Build Variables
+
+TARGETNAME = fun2gs
+
+VPATH = src:obj
+ASMFILES = $(wildcard asm/*.s)
+OBJFILES += $(patsubst asm/%.s,obj/%.x65,$(ASMFILES))
+ASM = x65
+ASMFLAGS = -lst
+# List of directories to create
+DIRS=obj
+
+help:
+	@echo. 
+	@echo $(TARGETNAME) Makefile
+	@echo -------------------------------------------------
+	@echo build commands:
+	@echo    make gs     - Apple IIgs
+	@echo    make image  - Build Bootable .PO File
+	@echo    make run    - Build / Run IIgs on emulator
+	@echo    make clean  - Clean intermediate/target files
+	@echo    make depend - Build dependencies
+	@echo -------------------------------------------------
+	@echo.
+
+$(TARGETNAME).sys16: $(OBJFILES)
+	$(ASM) link.s $(TARGETNAME).sys16 -iobj -a2o -sym x65.sym -lst
+
+gs: $(TARGETNAME).sys16
+
+disk image: gs
+	@echo Updating $(TARGETNAME).po
+	@echo Remove $(TARGETNAME).sys16
+	cadius deletefile $(TARGETNAME).po /$(TARGETNAME)/$(TARGETNAME).sys16
+	@echo Add $(TARGETNAME).sys16
+	cadius addfile $(TARGETNAME).po /$(TARGETNAME) ./$(TARGETNAME).sys16
+
+run: image
+	gsplus32
+
+clean:
+	@echo Remove $(TARGETNAME).sys16
+	$(shell if exist $(TARGETNAME).sys16 echo Y | del $(TARGETNAME).sys16)
+	@echo Remove Intermediate Files
+	@del /q obj\*
+
+depend:
+	@echo TODO - make dependencies
+
+# Generic Rules
+#objdir: obj
+
+obj/%.x65 : asm/%.s
+	@echo Assembling $(<F)
+	$(ASM) $< -cpu=65816 -imacros -idata -obj $@ $(ASMFLAGS)
+
+# Create all the directories
+$(shell if not exist $(DIRS) mkdir $(DIRS))
+
diff --git a/samples/apple2gs/gsos/_FileInformation.txt b/samples/apple2gs/gsos/_FileInformation.txt
new file mode 100644
index 0000000..92ea496
--- /dev/null
+++ b/samples/apple2gs/gsos/_FileInformation.txt
@@ -0,0 +1 @@
+FUN2GS.SYS16=Type(B3),AuxType(DB07),VersionCreate(24),MinVersion(00),Access(21),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)
diff --git a/samples/apple2gs/gsos/asm/background.s b/samples/apple2gs/gsos/asm/background.s
new file mode 100644
index 0000000..15f567a
--- /dev/null
+++ b/samples/apple2gs/gsos/asm/background.s
@@ -0,0 +1,7 @@
+
+	xdef background.c1
+	section background, Data
+	
+background.c1:
+	incbin "background.c1"
+	
diff --git a/samples/apple2gs/gsos/asm/blit.s b/samples/apple2gs/gsos/asm/blit.s
new file mode 100644
index 0000000..c9c02e0
--- /dev/null
+++ b/samples/apple2gs/gsos/asm/blit.s
@@ -0,0 +1,29455 @@
+*
+* ORCA/M Format !!
+* Thunk from C to Blit Rectangles from Bank 01
+* Up to bank E1, this is as close as we get to a page
+* flip, or backbuffer present
+*
+	section "BlitCode", Code
+	
+	xdef PresentPalette
+	xdef PresentSCB
+	xdef PresentFrameBuffer
+	xdef BlitRect
+	
+	include common.i	
+
+macro _pushpage
+{
+addr = 254
+	rept 128
+	{
+		pei (addr)
+		addr = addr - 2
+	}
+}
+	
+PresentPalette
+{
+	mx %00
+
+	phb
+	phk
+	plb
+	
+	tsc
+	sta stack
+	
+	tdc
+	sta dp
+	
+*---------------------
+	sei
+	_shadowON
+	_auxON
+*---------------------
+
+	clc
+	lda #$9E00
+peiloop anop
+	tcd
+	adc #$00FF
+	tcs
+
+	_pushpage
+	
+	inc a
+	cmp #$A000
+	bcs done
+	jmp peiloop
+
+*---------------------
+done anop
+	
+*---------------------
+	_auxOFF
+	_shadowOFF
+	cli	
+*---------------------
+	
+	lda dp
+	tcd
+	
+	lda stack
+	tcs	
+
+	plb
+	rtl
+stack ds.b 2
+dp ds.b 2
+}
+
+PresentSCB
+{
+	phb
+	phk
+	plb
+	
+	tsc
+	sta stack
+	
+	tdc
+	sta dp
+*---------------------
+	sei
+	_shadowON
+	_auxON	
+*---------------------
+
+	lda #$9D00
+	tcd
+	lda #$9DFF
+	tcs
+
+ct = 128
+	rept 128
+{
+ct = ct-1
+	pei (ct*2)
+}
+
+*---------------------
+	_auxOFF
+	_shadowOFF
+	cli	 
+*---------------------
+	lda dp
+	tcd
+	
+	lda stack
+	tcs	
+
+	plb
+	rtl
+stack ds.b 2
+dp ds.b 2
+}
+
+PresentFrameBuffer
+{
+	phb
+	phk
+	plb
+	
+	tsc
+	sta stack
+	tax
+	
+	tdc
+	sta dp
+	
+*---------------------
+	sei
+	_shadowON
+	_auxON
+*---------------------
+
+	ldy #5 ; re-enable interrupts every 5 pages
+	
+	clc
+	lda #$2000
+peiloop anop
+	tcd
+	adc #$00FF
+	tcs
+
+	_pushpage
+	
+	inc a
+	cmp #$9d00
+	bcs done2
+	
+	dey
+	bpl nextpage
+	
+	tay
+	_auxOFF
+	txs
+	cli
+	sei
+*	_auxON
+	ora #$0030
+	sta >$00C068
+	
+	tya
+	ldy #5	
+
+nextpage anop
+	jmp peiloop
+
+*---------------------
+done2
+	
+*---------------------
+	_auxOFF
+	_shadowOFF
+	cli
+*---------------------
+	
+	lda dp
+	tcd
+	
+	lda stack
+	tcs	
+
+	plb
+	rtl
+stack ds 2
+dp ds 2
+}	
+*
+* void BlitRect(short x, short y, short width, short height)
+*
+BlitRect
+inputX equ 5
+inputY equ 7
+inputW equ 9
+inputH equ 11
+
+stackFix equ 9
+
+	phb
+	phk
+	plb
+	
+* save off stack and dp registers for later	
+	
+	tsc
+	sta stack
+	
+	tdc
+	sta dp
+	
+*---------------------------------------
+
+	lda inputX,s
+	cmp #320
+	blt cont0
+	jmp done 	; X Position outside the screen, exit
+	
+cont0 anop	
+	lda inputY,s
+	cmp #200
+	blt cont1
+	jmp done 	; Y Position outside of the screen, exit
+	
+cont1 anop
+	lda inputX,s
+	adc inputW,s
+	cmp #320
+	blt cont2
+	
+	lda #320	; x+W outside of screen, clip to edge
+	sbc inputX,s
+	sta inputW,s
+	
+cont2 anop
+	lda inputY,s
+	adc inputH,s
+	cmp #200
+	blt clipdone
+	
+	lda #200  	; y+H outside of screen, clip to edge
+	sbc inputY,s
+	sta inputH,s
+
+clipdone anop
+*---------------------------------------
+	
+* snap X, and Y to multiples of 8
+* snap W and H to multiples of 8
+   
+	clc
+	lda inputX,s
+	and #3
+	adc inputW,s
+	adc #7
+	lsr a
+	lsr a
+	lsr a
+	sta inputW,s
+	sta loopW
+*	sta result
+	
+	clc
+	lda inputY,s
+	and #3
+	adc inputH,s
+	adc #7
+	lsr a
+	lsr a
+	lsr a
+	sta inputH,s
+	sta loopH
+	
+	lda inputY,s
+	and #$FFFC
+	lsr a
+	lsr a
+	sta inputY,s
+	sta loopY
+	tay
+	
+	lda inputX,s
+	and #$FFFC
+	asl a
+	tax
+	sta inputX,s	; maybe don't need this
+	sta loopX
+	
+*---------------------------------------
+	sei
+	_shadowON
+	_auxON
+*---------------------------------------
+
+*
+* We're messing with the stack, and the DP
+* so operationally, we can't use these things
+* for variables, or for call returns
+*
+
+*	
+* Outter loop, once for each Y
+*
+YLOOP ANOP
+
+	lda loopX
+	sta tempX
+	
+	lda loopW
+	sta tempW
+		
+XLOOP ANOP ; Inner Loop, for each X Block
+	lda tempW ; width in tiles
+	stz tempW
+	cmp #9
+	blt LastBlock
+	sbc #8
+	sta tempW
+	lda #8
+LastBlock ANOP	
+	asl a
+	adc tempX
+	tax
+	
+; increment to next block
+	lda tempX
+	adc #16*8
+	sta tempX	
+				
+* pei blitter changes A, S, D, and C
+* trb blitter requires C = 0, A = 0, changes S, D, and C
+
+	lda DPtable,y
+	cmp #$9D00
+	bcs BRET
+	
+	jmp (dispatchTable-2,x) 
+	   
+BRET entry	; Blit Return
+
+	lda tempW
+	bne XLOOP
+	
+	dec loopH
+	bmi .done
+	
+	iny 	; next direct page
+	iny
+	
+* SONGS SOUND BETTER IF WE ALLOW INTERRUPTS	
+* FPS IS BETTER WITHOUT THIS CODE
+	lda stack
+	tcs
+	
+	_auxOFF
+	_shadowOFF
+	cli
+	sei
+	_shadowON
+	_auxON
+	
+* TODO, every 4 lines or so (or every so many clocks)
+* re-enable interrupts, for audio, and the heartbeat	
+	
+	bra YLOOP 
+	
+.done ANOP	
+
+* restore stack and dp
+
+	lda dp
+	tcd
+	
+	lda stack
+	tcs
+	
+*---------------------------------------
+	_auxOFF
+	_shadowOFF
+	cli
+*---------------------------------------
+	
+* Patchup the Stack so we can return
+
+* Copy Return Address, and bank
+	lda 3,s
+	sta stackFix+2,s
+	lda 1,s
+	sta stackFix,s
+	
+* skip the arguments
+	clc
+	tsc
+	adc #8
+	tcs	
+
+	lda result
+	
+	plb
+	rtl
+*-------------------------------------------------------------------------------
+tempX ds 2  ; inner X
+tempW ds 2  ; inner W
+* Local bank copies of our stack variables
+loopX ds 2
+loopY ds 2
+loopW ds 2
+loopH ds 2	
+stack ds 2 	; stack register
+dp    ds 2  ; dp register
+result ds 2
+	
+*-------------------------------------------------------------------------------
+DPtable ANOP  ; only first 25 entries are used
+	dc.w $2000,$2500,$2A00,$2F00,$3400,$3900,$3E00,$4300
+	dc.w $4800,$4D00,$5200,$5700,$5C00,$6100,$6600,$6B00
+	dc.w $7000,$7500,$7A00,$7F00,$8400,$8900,$8E00,$9300
+	dc.w $9800,$9D00,$A200,$A700,$AC00,$B100,$B600,$BB00
+*-------------------------------------------------------------------------------
+dispatchTable ANOP
+    dc.w  blit0_8,blit0_16,blit0_24,blit0_32,blit0_40,blit0_48,blit0_56,blit0_64
+    dc.w  blit8_8,blit8_16,blit8_24,blit8_32,blit8_40,blit8_48,blit8_56,blit8_64
+    dc.w  blit16_8,blit16_16,blit16_24,blit16_32,blit16_40,blit16_48,blit16_56,blit16_64
+    dc.w  blit24_8,blit24_16,blit24_24,blit24_32,blit24_40,blit24_48,blit24_56,blit24_64
+    dc.w  blit32_8,blit32_16,blit32_24,blit32_32,blit32_40,blit32_48,blit32_56,blit32_64
+    dc.w  blit40_8,blit40_16,blit40_24,blit40_32,blit40_40,blit40_48,blit40_56,blit40_64
+    dc.w  blit48_8,blit48_16,blit48_24,blit48_32,blit48_40,blit48_48,blit48_56,blit48_64
+    dc.w  blit56_8,blit56_16,blit56_24,blit56_32,blit56_40,blit56_48,blit56_56,blit56_64
+    dc.w  blit64_8,blit64_16,blit64_24,blit64_32,blit64_40,blit64_48,blit64_56,blit64_64
+    dc.w  blit72_8,blit72_16,blit72_24,blit72_32,blit72_40,blit72_48,blit72_56,blit72_64
+    dc.w  blit80_8,blit80_16,blit80_24,blit80_32,blit80_40,blit80_48,blit80_56,blit80_64
+    dc.w  blit88_8,blit88_16,blit88_24,blit88_32,blit88_40,blit88_48,blit88_56,blit88_64
+    dc.w  blit96_8,blit96_16,blit96_24,blit96_32,blit96_40,blit96_48,blit96_56,blit96_64
+    dc.w  blit104_8,blit104_16,blit104_24,blit104_32,blit104_40,blit104_48,blit104_56,blit104_64
+    dc.w  blit112_8,blit112_16,blit112_24,blit112_32,blit112_40,blit112_48,blit112_56,blit112_64
+    dc.w  blit120_8,blit120_16,blit120_24,blit120_32,blit120_40,blit120_48,blit120_56,blit120_64
+    dc.w  blit128_8,blit128_16,blit128_24,blit128_32,blit128_40,blit128_48,blit128_56,blit128_64
+    dc.w  blit136_8,blit136_16,blit136_24,blit136_32,blit136_40,blit136_48,blit136_56,blit136_64
+    dc.w  blit144_8,blit144_16,blit144_24,blit144_32,blit144_40,blit144_48,blit144_56,blit144_64
+    dc.w  blit152_8,blit152_16,blit152_24,blit152_32,blit152_40,blit152_48,blit152_56,blit152_64
+    dc.w  blit160_8,blit160_16,blit160_24,blit160_32,blit160_40,blit160_48,blit160_56,blit160_64
+    dc.w  blit168_8,blit168_16,blit168_24,blit168_32,blit168_40,blit168_48,blit168_56,blit168_64
+    dc.w  blit176_8,blit176_16,blit176_24,blit176_32,blit176_40,blit176_48,blit176_56,blit176_64
+    dc.w  blit184_8,blit184_16,blit184_24,blit184_32,blit184_40,blit184_48,blit184_56,blit184_64
+    dc.w  blit192_8,blit192_16,blit192_24,blit192_32,blit192_40,blit192_48,blit192_56,blit192_64
+    dc.w  blit200_8,blit200_16,blit200_24,blit200_32,blit200_40,blit200_48,blit200_56,blit200_64
+    dc.w  blit208_8,blit208_16,blit208_24,blit208_32,blit208_40,blit208_48,blit208_56,blit208_64
+    dc.w  blit216_8,blit216_16,blit216_24,blit216_32,blit216_40,blit216_48,blit216_56,blit216_64
+    dc.w  blit224_8,blit224_16,blit224_24,blit224_32,blit224_40,blit224_48,blit224_56,blit224_64
+    dc.w  blit232_8,blit232_16,blit232_24,blit232_32,blit232_40,blit232_48,blit232_56,blit232_64
+    dc.w  blit240_8,blit240_16,blit240_24,blit240_32,blit240_40,blit240_48,blit240_56,blit240_64
+    dc.w  blit248_8,blit248_16,blit248_24,blit248_32,blit248_40,blit248_48,blit248_56,blit248_64
+    dc.w  blit256_8,blit256_16,blit256_24,blit256_32,blit256_40,blit256_48,blit256_56,blit256_64
+    dc.w  blit264_8,blit264_16,blit264_24,blit264_32,blit264_40,blit264_48,blit264_56,blit_null
+    dc.w  blit272_8,blit272_16,blit272_24,blit272_32,blit272_40,blit272_48,blit_null,blit_null
+    dc.w  blit280_8,blit280_16,blit280_24,blit280_32,blit280_40,blit_null,blit_null,blit_null
+    dc.w  blit288_8,blit288_16,blit288_24,blit288_32,blit_null,blit_null,blit_null,blit_null
+    dc.w  blit296_8,blit296_16,blit296_24,blit_null,blit_null,blit_null,blit_null,blit_null
+    dc.w  blit304_8,blit304_16,blit_null,blit_null,blit_null,blit_null,blit_null,blit_null
+    dc.w  blit312_8,blit_null,blit_null,blit_null,blit_null,blit_null,blit_null,blit_null
+
+*-------------------------------------------------------------------------------
+	
+blit_null start BLITCODE
+	jmp BRET
+	end
+	
+blit0_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;833 cycles
+		 end
+blit8_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;843 cycles
+		 end
+blit16_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;843 cycles
+		 end
+blit24_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #426
+         TCS        ; Set S  $02AB
+         ADC #-171
+         TCD        ; Set DP $0200
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #330
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;843 cycles
+		 end
+blit32_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #430
+         TCS        ; Set S  $02AF
+         ADC #-175
+         TCD        ; Set DP $0200
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #334
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;843 cycles
+		 end
+blit40_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #434
+         TCS        ; Set S  $02B3
+         ADC #-179
+         TCD        ; Set DP $0200
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #338
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;843 cycles
+		 end
+blit48_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #438
+         TCS        ; Set S  $02B7
+         ADC #-183
+         TCD        ; Set DP $0200
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #342
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;843 cycles
+		 end
+blit56_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #442
+         TCS        ; Set S  $02BB
+         ADC #-187
+         TCD        ; Set DP $0200
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #346
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;843 cycles
+		 end
+blit64_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;833 cycles
+		 end
+blit72_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;843 cycles
+		 end
+blit80_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;843 cycles
+		 end
+blit88_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #426
+         TCS        ; Set S  $04AB
+         ADC #-171
+         TCD        ; Set DP $0400
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;843 cycles
+		 end
+blit96_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #430
+         TCS        ; Set S  $04AF
+         ADC #-175
+         TCD        ; Set DP $0400
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;843 cycles
+		 end
+blit104_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #434
+         TCS        ; Set S  $04B3
+         ADC #-179
+         TCD        ; Set DP $0400
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;843 cycles
+		 end
+blit112_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #438
+         TCS        ; Set S  $04B7
+         ADC #-183
+         TCD        ; Set DP $0400
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;843 cycles
+		 end
+blit120_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #442
+         TCS        ; Set S  $04BB
+         ADC #-187
+         TCD        ; Set DP $0400
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;843 cycles
+		 end
+blit128_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;833 cycles
+		 end
+blit136_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;843 cycles
+		 end
+blit144_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;843 cycles
+		 end
+blit152_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #426
+         TCS        ; Set S  $01AB
+         ADC #-171
+         TCD        ; Set DP $0100
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #330
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;843 cycles
+		 end
+blit160_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #430
+         TCS        ; Set S  $01AF
+         ADC #-175
+         TCD        ; Set DP $0100
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #334
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;843 cycles
+		 end
+blit168_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #434
+         TCS        ; Set S  $01B3
+         ADC #-179
+         TCD        ; Set DP $0100
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #338
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;843 cycles
+		 end
+blit176_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #438
+         TCS        ; Set S  $01B7
+         ADC #-183
+         TCD        ; Set DP $0100
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #342
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;843 cycles
+		 end
+blit184_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #442
+         TCS        ; Set S  $01BB
+         ADC #-187
+         TCD        ; Set DP $0100
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #346
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;843 cycles
+		 end
+blit192_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;833 cycles
+		 end
+blit200_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;843 cycles
+		 end
+blit208_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;843 cycles
+		 end
+blit216_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #426
+         TCS        ; Set S  $03AB
+         ADC #-171
+         TCD        ; Set DP $0300
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #330
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;843 cycles
+		 end
+blit224_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #430
+         TCS        ; Set S  $03AF
+         ADC #-175
+         TCD        ; Set DP $0300
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #334
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;843 cycles
+		 end
+blit232_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #434
+         TCS        ; Set S  $03B3
+         ADC #-179
+         TCD        ; Set DP $0300
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #338
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;843 cycles
+		 end
+blit240_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #438
+         TCS        ; Set S  $03B7
+         ADC #-183
+         TCD        ; Set DP $0300
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #342
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;843 cycles
+		 end
+blit248_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #442
+         TCS        ; Set S  $03BB
+         ADC #-187
+         TCD        ; Set DP $0300
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #346
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;843 cycles
+		 end
+blit256_64 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;833 cycles
+		 end
+blit0_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;737 cycles
+		 end
+blit8_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;737 cycles
+		 end
+blit16_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;747 cycles
+		 end
+blit24_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;747 cycles
+		 end
+blit32_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #426
+         TCS        ; Set S  $02AB
+         ADC #-171
+         TCD        ; Set DP $0200
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #330
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;747 cycles
+		 end
+blit40_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #430
+         TCS        ; Set S  $02AF
+         ADC #-175
+         TCD        ; Set DP $0200
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #334
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;747 cycles
+		 end
+blit48_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #434
+         TCS        ; Set S  $02B3
+         ADC #-179
+         TCD        ; Set DP $0200
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #338
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;747 cycles
+		 end
+blit56_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #438
+         TCS        ; Set S  $02B7
+         ADC #-183
+         TCD        ; Set DP $0200
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #342
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;747 cycles
+		 end
+blit64_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;737 cycles
+		 end
+blit72_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;737 cycles
+		 end
+blit80_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;747 cycles
+		 end
+blit88_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;747 cycles
+		 end
+blit96_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #426
+         TCS        ; Set S  $04AB
+         ADC #-171
+         TCD        ; Set DP $0400
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;747 cycles
+		 end
+blit104_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #430
+         TCS        ; Set S  $04AF
+         ADC #-175
+         TCD        ; Set DP $0400
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;747 cycles
+		 end
+blit112_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #434
+         TCS        ; Set S  $04B3
+         ADC #-179
+         TCD        ; Set DP $0400
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;747 cycles
+		 end
+blit120_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #438
+         TCS        ; Set S  $04B7
+         ADC #-183
+         TCD        ; Set DP $0400
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;747 cycles
+		 end
+blit128_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;737 cycles
+		 end
+blit136_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;737 cycles
+		 end
+blit144_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;747 cycles
+		 end
+blit152_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;747 cycles
+		 end
+blit160_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #426
+         TCS        ; Set S  $01AB
+         ADC #-171
+         TCD        ; Set DP $0100
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #330
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;747 cycles
+		 end
+blit168_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #430
+         TCS        ; Set S  $01AF
+         ADC #-175
+         TCD        ; Set DP $0100
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #334
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;747 cycles
+		 end
+blit176_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #434
+         TCS        ; Set S  $01B3
+         ADC #-179
+         TCD        ; Set DP $0100
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #338
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;747 cycles
+		 end
+blit184_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #438
+         TCS        ; Set S  $01B7
+         ADC #-183
+         TCD        ; Set DP $0100
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #342
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;747 cycles
+		 end
+blit192_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;737 cycles
+		 end
+blit200_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;737 cycles
+		 end
+blit208_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;747 cycles
+		 end
+blit216_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;747 cycles
+		 end
+blit224_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #426
+         TCS        ; Set S  $03AB
+         ADC #-171
+         TCD        ; Set DP $0300
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #330
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;747 cycles
+		 end
+blit232_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #430
+         TCS        ; Set S  $03AF
+         ADC #-175
+         TCD        ; Set DP $0300
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #334
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;747 cycles
+		 end
+blit240_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #434
+         TCS        ; Set S  $03B3
+         ADC #-179
+         TCD        ; Set DP $0300
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #338
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;747 cycles
+		 end
+blit248_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #438
+         TCS        ; Set S  $03B7
+         ADC #-183
+         TCD        ; Set DP $0300
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #342
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;747 cycles
+		 end
+blit256_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;737 cycles
+		 end
+blit264_56 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;737 cycles
+		 end
+blit0_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;641 cycles
+		 end
+blit8_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;641 cycles
+		 end
+blit16_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;641 cycles
+		 end
+blit24_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;651 cycles
+		 end
+blit32_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;651 cycles
+		 end
+blit40_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #426
+         TCS        ; Set S  $02AB
+         ADC #-171
+         TCD        ; Set DP $0200
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #330
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;651 cycles
+		 end
+blit48_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #430
+         TCS        ; Set S  $02AF
+         ADC #-175
+         TCD        ; Set DP $0200
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #334
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;651 cycles
+		 end
+blit56_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #434
+         TCS        ; Set S  $02B3
+         ADC #-179
+         TCD        ; Set DP $0200
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #338
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;651 cycles
+		 end
+blit64_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;641 cycles
+		 end
+blit72_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;641 cycles
+		 end
+blit80_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;641 cycles
+		 end
+blit88_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;651 cycles
+		 end
+blit96_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;651 cycles
+		 end
+blit104_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #426
+         TCS        ; Set S  $04AB
+         ADC #-171
+         TCD        ; Set DP $0400
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;651 cycles
+		 end
+blit112_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #430
+         TCS        ; Set S  $04AF
+         ADC #-175
+         TCD        ; Set DP $0400
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;651 cycles
+		 end
+blit120_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #434
+         TCS        ; Set S  $04B3
+         ADC #-179
+         TCD        ; Set DP $0400
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;651 cycles
+		 end
+blit128_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;641 cycles
+		 end
+blit136_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;641 cycles
+		 end
+blit144_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;641 cycles
+		 end
+blit152_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;651 cycles
+		 end
+blit160_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;651 cycles
+		 end
+blit168_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #426
+         TCS        ; Set S  $01AB
+         ADC #-171
+         TCD        ; Set DP $0100
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #330
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;651 cycles
+		 end
+blit176_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #430
+         TCS        ; Set S  $01AF
+         ADC #-175
+         TCD        ; Set DP $0100
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #334
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;651 cycles
+		 end
+blit184_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #434
+         TCS        ; Set S  $01B3
+         ADC #-179
+         TCD        ; Set DP $0100
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #338
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;651 cycles
+		 end
+blit192_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;641 cycles
+		 end
+blit200_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;641 cycles
+		 end
+blit208_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;641 cycles
+		 end
+blit216_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;651 cycles
+		 end
+blit224_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;651 cycles
+		 end
+blit232_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #426
+         TCS        ; Set S  $03AB
+         ADC #-171
+         TCD        ; Set DP $0300
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #330
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;651 cycles
+		 end
+blit240_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #430
+         TCS        ; Set S  $03AF
+         ADC #-175
+         TCD        ; Set DP $0300
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #334
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;651 cycles
+		 end
+blit248_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #434
+         TCS        ; Set S  $03B3
+         ADC #-179
+         TCD        ; Set DP $0300
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #338
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;651 cycles
+		 end
+blit256_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;641 cycles
+		 end
+blit264_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;641 cycles
+		 end
+blit272_48 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;641 cycles
+		 end
+blit0_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #19
+         TCS        ; Set S  $0013
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0153
+         ADC #-83
+         TCD        ; Set DP $0100
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #242
+         TCS        ; Set S  $01F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0293
+         ADC #-147
+         TCD        ; Set DP $0200
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #306
+         TCS        ; Set S  $0333
+         ADC #-51
+         TCD        ; Set DP $0300
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #210
+         TCS        ; Set S  $03D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0473
+         ADC #-115
+         TCD        ; Set DP $0400
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;545 cycles
+		 end
+blit8_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;545 cycles
+		 end
+blit16_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;545 cycles
+		 end
+blit24_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;545 cycles
+		 end
+blit32_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;555 cycles
+		 end
+blit40_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;555 cycles
+		 end
+blit48_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #426
+         TCS        ; Set S  $02AB
+         ADC #-171
+         TCD        ; Set DP $0200
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #330
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;555 cycles
+		 end
+blit56_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #430
+         TCS        ; Set S  $02AF
+         ADC #-175
+         TCD        ; Set DP $0200
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #334
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;555 cycles
+		 end
+blit64_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #178
+         TCS        ; Set S  $02B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;545 cycles
+		 end
+blit72_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;545 cycles
+		 end
+blit80_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;545 cycles
+		 end
+blit88_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;545 cycles
+		 end
+blit96_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;555 cycles
+		 end
+blit104_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;555 cycles
+		 end
+blit112_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #426
+         TCS        ; Set S  $04AB
+         ADC #-171
+         TCD        ; Set DP $0400
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;555 cycles
+		 end
+blit120_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #430
+         TCS        ; Set S  $04AF
+         ADC #-175
+         TCD        ; Set DP $0400
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;555 cycles
+		 end
+blit128_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #178
+         TCS        ; Set S  $04B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;545 cycles
+		 end
+blit136_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;545 cycles
+		 end
+blit144_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;545 cycles
+		 end
+blit152_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;545 cycles
+		 end
+blit160_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;555 cycles
+		 end
+blit168_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;555 cycles
+		 end
+blit176_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #426
+         TCS        ; Set S  $01AB
+         ADC #-171
+         TCD        ; Set DP $0100
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #330
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;555 cycles
+		 end
+blit184_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #430
+         TCS        ; Set S  $01AF
+         ADC #-175
+         TCD        ; Set DP $0100
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #334
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;555 cycles
+		 end
+blit192_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #178
+         TCS        ; Set S  $01B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;545 cycles
+		 end
+blit200_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;545 cycles
+		 end
+blit208_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;545 cycles
+		 end
+blit216_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;545 cycles
+		 end
+blit224_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;555 cycles
+		 end
+blit232_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;555 cycles
+		 end
+blit240_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #426
+         TCS        ; Set S  $03AB
+         ADC #-171
+         TCD        ; Set DP $0300
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #330
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;555 cycles
+		 end
+blit248_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #430
+         TCS        ; Set S  $03AF
+         ADC #-175
+         TCD        ; Set DP $0300
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #334
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;555 cycles
+		 end
+blit256_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #178
+         TCS        ; Set S  $03B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;545 cycles
+		 end
+blit264_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;545 cycles
+		 end
+blit272_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;545 cycles
+		 end
+blit280_40 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         JMP BRET   ;545 cycles
+		 end
+blit0_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #15
+         TCS        ; Set S  $000F
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $014F
+         ADC #-79
+         TCD        ; Set DP $0100
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #238
+         TCS        ; Set S  $01EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $028F
+         ADC #-143
+         TCD        ; Set DP $0200
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #302
+         TCS        ; Set S  $032F
+         ADC #-47
+         TCD        ; Set DP $0300
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #206
+         TCS        ; Set S  $03CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $046F
+         ADC #-111
+         TCD        ; Set DP $0400
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;449 cycles
+		 end
+blit8_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #19
+         TCS        ; Set S  $0013
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0153
+         ADC #-83
+         TCD        ; Set DP $0100
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #242
+         TCS        ; Set S  $01F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0293
+         ADC #-147
+         TCD        ; Set DP $0200
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #306
+         TCS        ; Set S  $0333
+         ADC #-51
+         TCD        ; Set DP $0300
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #210
+         TCS        ; Set S  $03D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0473
+         ADC #-115
+         TCD        ; Set DP $0400
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;449 cycles
+		 end
+blit16_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;449 cycles
+		 end
+blit24_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;449 cycles
+		 end
+blit32_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;449 cycles
+		 end
+blit40_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;459 cycles
+		 end
+blit48_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;459 cycles
+		 end
+blit56_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #426
+         TCS        ; Set S  $02AB
+         ADC #-171
+         TCD        ; Set DP $0200
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #330
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;459 cycles
+		 end
+blit64_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #174
+         TCS        ; Set S  $02AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;449 cycles
+		 end
+blit72_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #178
+         TCS        ; Set S  $02B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;449 cycles
+		 end
+blit80_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;449 cycles
+		 end
+blit88_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;449 cycles
+		 end
+blit96_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;449 cycles
+		 end
+blit104_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;459 cycles
+		 end
+blit112_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;459 cycles
+		 end
+blit120_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #426
+         TCS        ; Set S  $04AB
+         ADC #-171
+         TCD        ; Set DP $0400
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;459 cycles
+		 end
+blit128_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #174
+         TCS        ; Set S  $04AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;449 cycles
+		 end
+blit136_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #178
+         TCS        ; Set S  $04B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;449 cycles
+		 end
+blit144_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;449 cycles
+		 end
+blit152_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;449 cycles
+		 end
+blit160_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;449 cycles
+		 end
+blit168_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;459 cycles
+		 end
+blit176_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;459 cycles
+		 end
+blit184_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #426
+         TCS        ; Set S  $01AB
+         ADC #-171
+         TCD        ; Set DP $0100
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #330
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;459 cycles
+		 end
+blit192_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #174
+         TCS        ; Set S  $01AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;449 cycles
+		 end
+blit200_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #178
+         TCS        ; Set S  $01B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;449 cycles
+		 end
+blit208_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;449 cycles
+		 end
+blit216_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;449 cycles
+		 end
+blit224_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;449 cycles
+		 end
+blit232_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;459 cycles
+		 end
+blit240_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;459 cycles
+		 end
+blit248_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #426
+         TCS        ; Set S  $03AB
+         ADC #-171
+         TCD        ; Set DP $0300
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #330
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;459 cycles
+		 end
+blit256_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #174
+         TCS        ; Set S  $03AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;449 cycles
+		 end
+blit264_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #178
+         TCS        ; Set S  $03B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;449 cycles
+		 end
+blit272_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;449 cycles
+		 end
+blit280_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         JMP BRET   ;449 cycles
+		 end
+blit288_32 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         JMP BRET   ;449 cycles
+		 end
+blit0_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #11
+         TCS        ; Set S  $000B
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $014B
+         ADC #-75
+         TCD        ; Set DP $0100
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #234
+         TCS        ; Set S  $01EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $028B
+         ADC #-139
+         TCD        ; Set DP $0200
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #298
+         TCS        ; Set S  $032B
+         ADC #-43
+         TCD        ; Set DP $0300
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #202
+         TCS        ; Set S  $03CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $046B
+         ADC #-107
+         TCD        ; Set DP $0400
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;353 cycles
+		 end
+blit8_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #15
+         TCS        ; Set S  $000F
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $014F
+         ADC #-79
+         TCD        ; Set DP $0100
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #238
+         TCS        ; Set S  $01EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $028F
+         ADC #-143
+         TCD        ; Set DP $0200
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #302
+         TCS        ; Set S  $032F
+         ADC #-47
+         TCD        ; Set DP $0300
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #206
+         TCS        ; Set S  $03CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $046F
+         ADC #-111
+         TCD        ; Set DP $0400
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;353 cycles
+		 end
+blit16_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #19
+         TCS        ; Set S  $0013
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0153
+         ADC #-83
+         TCD        ; Set DP $0100
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #242
+         TCS        ; Set S  $01F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0293
+         ADC #-147
+         TCD        ; Set DP $0200
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #306
+         TCS        ; Set S  $0333
+         ADC #-51
+         TCD        ; Set DP $0300
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #210
+         TCS        ; Set S  $03D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0473
+         ADC #-115
+         TCD        ; Set DP $0400
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;353 cycles
+		 end
+blit24_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;353 cycles
+		 end
+blit32_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;353 cycles
+		 end
+blit40_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;353 cycles
+		 end
+blit48_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;363 cycles
+		 end
+blit56_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #422
+         TCS        ; Set S  $02A7
+         ADC #-167
+         TCD        ; Set DP $0200
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #326
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;363 cycles
+		 end
+blit64_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #170
+         TCS        ; Set S  $02AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;353 cycles
+		 end
+blit72_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #174
+         TCS        ; Set S  $02AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;353 cycles
+		 end
+blit80_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #178
+         TCS        ; Set S  $02B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;353 cycles
+		 end
+blit88_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;353 cycles
+		 end
+blit96_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;353 cycles
+		 end
+blit104_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;353 cycles
+		 end
+blit112_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;363 cycles
+		 end
+blit120_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #422
+         TCS        ; Set S  $04A7
+         ADC #-167
+         TCD        ; Set DP $0400
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;363 cycles
+		 end
+blit128_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #170
+         TCS        ; Set S  $04AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;353 cycles
+		 end
+blit136_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #174
+         TCS        ; Set S  $04AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;353 cycles
+		 end
+blit144_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #178
+         TCS        ; Set S  $04B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;353 cycles
+		 end
+blit152_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;353 cycles
+		 end
+blit160_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;353 cycles
+		 end
+blit168_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;353 cycles
+		 end
+blit176_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;363 cycles
+		 end
+blit184_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #422
+         TCS        ; Set S  $01A7
+         ADC #-167
+         TCD        ; Set DP $0100
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #326
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;363 cycles
+		 end
+blit192_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #170
+         TCS        ; Set S  $01AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;353 cycles
+		 end
+blit200_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #174
+         TCS        ; Set S  $01AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;353 cycles
+		 end
+blit208_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #178
+         TCS        ; Set S  $01B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;353 cycles
+		 end
+blit216_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;353 cycles
+		 end
+blit224_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;353 cycles
+		 end
+blit232_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;353 cycles
+		 end
+blit240_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;363 cycles
+		 end
+blit248_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #422
+         TCS        ; Set S  $03A7
+         ADC #-167
+         TCD        ; Set DP $0300
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #326
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;363 cycles
+		 end
+blit256_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #170
+         TCS        ; Set S  $03AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;353 cycles
+		 end
+blit264_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #174
+         TCS        ; Set S  $03AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;353 cycles
+		 end
+blit272_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #178
+         TCS        ; Set S  $03B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;353 cycles
+		 end
+blit280_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         JMP BRET   ;353 cycles
+		 end
+blit288_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         JMP BRET   ;353 cycles
+		 end
+blit296_24 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         JMP BRET   ;353 cycles
+		 end
+blit0_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #7
+         TCS        ; Set S  $0007
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00A7
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0147
+         ADC #-71
+         TCD        ; Set DP $0100
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #230
+         TCS        ; Set S  $01E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0287
+         ADC #-135
+         TCD        ; Set DP $0200
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #294
+         TCS        ; Set S  $0327
+         ADC #-39
+         TCD        ; Set DP $0300
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #198
+         TCS        ; Set S  $03C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0467
+         ADC #-103
+         TCD        ; Set DP $0400
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         JMP BRET   ;257 cycles
+		 end
+blit8_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #11
+         TCS        ; Set S  $000B
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $014B
+         ADC #-75
+         TCD        ; Set DP $0100
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #234
+         TCS        ; Set S  $01EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $028B
+         ADC #-139
+         TCD        ; Set DP $0200
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #298
+         TCS        ; Set S  $032B
+         ADC #-43
+         TCD        ; Set DP $0300
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #202
+         TCS        ; Set S  $03CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $046B
+         ADC #-107
+         TCD        ; Set DP $0400
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         JMP BRET   ;257 cycles
+		 end
+blit16_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #15
+         TCS        ; Set S  $000F
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $014F
+         ADC #-79
+         TCD        ; Set DP $0100
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #238
+         TCS        ; Set S  $01EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $028F
+         ADC #-143
+         TCD        ; Set DP $0200
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #302
+         TCS        ; Set S  $032F
+         ADC #-47
+         TCD        ; Set DP $0300
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #206
+         TCS        ; Set S  $03CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $046F
+         ADC #-111
+         TCD        ; Set DP $0400
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         JMP BRET   ;257 cycles
+		 end
+blit24_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #19
+         TCS        ; Set S  $0013
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0153
+         ADC #-83
+         TCD        ; Set DP $0100
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #242
+         TCS        ; Set S  $01F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0293
+         ADC #-147
+         TCD        ; Set DP $0200
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #306
+         TCS        ; Set S  $0333
+         ADC #-51
+         TCD        ; Set DP $0300
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #210
+         TCS        ; Set S  $03D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0473
+         ADC #-115
+         TCD        ; Set DP $0400
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;257 cycles
+		 end
+blit32_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         JMP BRET   ;257 cycles
+		 end
+blit40_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         JMP BRET   ;257 cycles
+		 end
+blit48_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         JMP BRET   ;257 cycles
+		 end
+blit56_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0100
+         PEI $FE
+         PEI $FC
+         ADC #418
+         TCS        ; Set S  $02A3
+         ADC #-163
+         TCD        ; Set DP $0200
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #322
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;267 cycles
+		 end
+blit64_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #166
+         TCS        ; Set S  $02A7
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         JMP BRET   ;257 cycles
+		 end
+blit72_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #170
+         TCS        ; Set S  $02AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         JMP BRET   ;257 cycles
+		 end
+blit80_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #174
+         TCS        ; Set S  $02AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         JMP BRET   ;257 cycles
+		 end
+blit88_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #178
+         TCS        ; Set S  $02B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;257 cycles
+		 end
+blit96_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         JMP BRET   ;257 cycles
+		 end
+blit104_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         JMP BRET   ;257 cycles
+		 end
+blit112_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         JMP BRET   ;257 cycles
+		 end
+blit120_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0300
+         PEI $FE
+         PEI $FC
+         ADC #418
+         TCS        ; Set S  $04A3
+         ADC #-163
+         TCD        ; Set DP $0400
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;267 cycles
+		 end
+blit128_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #166
+         TCS        ; Set S  $04A7
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;257 cycles
+		 end
+blit136_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #170
+         TCS        ; Set S  $04AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;257 cycles
+		 end
+blit144_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #174
+         TCS        ; Set S  $04AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;257 cycles
+		 end
+blit152_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #178
+         TCS        ; Set S  $04B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;257 cycles
+		 end
+blit160_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;257 cycles
+		 end
+blit168_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;257 cycles
+		 end
+blit176_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;257 cycles
+		 end
+blit184_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0000
+         PEI $FE
+         PEI $FC
+         ADC #418
+         TCS        ; Set S  $01A3
+         ADC #-163
+         TCD        ; Set DP $0100
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #322
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;267 cycles
+		 end
+blit192_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #166
+         TCS        ; Set S  $01A7
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;257 cycles
+		 end
+blit200_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #170
+         TCS        ; Set S  $01AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;257 cycles
+		 end
+blit208_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #174
+         TCS        ; Set S  $01AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;257 cycles
+		 end
+blit216_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #178
+         TCS        ; Set S  $01B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;257 cycles
+		 end
+blit224_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;257 cycles
+		 end
+blit232_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;257 cycles
+		 end
+blit240_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;257 cycles
+		 end
+blit248_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         PEI $1E
+         PEI $1C
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         PEI $5E
+         PEI $5C
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #-257
+         TCD        ; Set DP $0200
+         PEI $FE
+         PEI $FC
+         ADC #418
+         TCS        ; Set S  $03A3
+         ADC #-163
+         TCD        ; Set DP $0300
+         PEI $A2
+         PEI $A0
+         PEI $9E
+         PEI $9C
+         ADC #322
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         PEI $3E
+         PEI $3C
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;267 cycles
+		 end
+blit256_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         PEI $22
+         PEI $20
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         PEI $62
+         PEI $60
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         PEI $02
+         PEI $00
+         ADC #166
+         TCS        ; Set S  $03A7
+         PEI $A6
+         PEI $A4
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         PEI $42
+         PEI $40
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;257 cycles
+		 end
+blit264_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         PEI $26
+         PEI $24
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         PEI $66
+         PEI $64
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         PEI $06
+         PEI $04
+         ADC #170
+         TCS        ; Set S  $03AB
+         PEI $AA
+         PEI $A8
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         PEI $46
+         PEI $44
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;257 cycles
+		 end
+blit272_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         PEI $2A
+         PEI $28
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         PEI $6A
+         PEI $68
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         PEI $0A
+         PEI $08
+         ADC #174
+         TCS        ; Set S  $03AF
+         PEI $AE
+         PEI $AC
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         PEI $4A
+         PEI $48
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;257 cycles
+		 end
+blit280_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         PEI $8E
+         PEI $8C
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         PEI $2E
+         PEI $2C
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         PEI $6E
+         PEI $6C
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         PEI $0E
+         PEI $0C
+         ADC #178
+         TCS        ; Set S  $03B3
+         PEI $B2
+         PEI $B0
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         PEI $4E
+         PEI $4C
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         PEI $EE
+         PEI $EC
+         JMP BRET   ;257 cycles
+		 end
+blit288_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         PEI $92
+         PEI $90
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         PEI $32
+         PEI $30
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         PEI $72
+         PEI $70
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         PEI $12
+         PEI $10
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         PEI $52
+         PEI $50
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         PEI $F2
+         PEI $F0
+         JMP BRET   ;257 cycles
+		 end
+blit296_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         PEI $96
+         PEI $94
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         PEI $36
+         PEI $34
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         PEI $76
+         PEI $74
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         PEI $16
+         PEI $14
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         PEI $56
+         PEI $54
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         PEI $F6
+         PEI $F4
+         JMP BRET   ;257 cycles
+		 end
+blit304_16 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         PEI $9A
+         PEI $98
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         PEI $3A
+         PEI $38
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         PEI $7A
+         PEI $78
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         PEI $1A
+         PEI $18
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         PEI $5A
+         PEI $58
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         PEI $FA
+         PEI $F8
+         JMP BRET   ;257 cycles
+		 end
+blit0_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #3
+         TCS        ; Set S  $0003
+         PEI $02
+         PEI $00
+         ADC #160
+         TCS        ; Set S  $00A3
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0143
+         ADC #-67
+         TCD        ; Set DP $0100
+         PEI $42
+         PEI $40
+         ADC #226
+         TCS        ; Set S  $01E3
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0283
+         ADC #-131
+         TCD        ; Set DP $0200
+         PEI $82
+         PEI $80
+         ADC #290
+         TCS        ; Set S  $0323
+         ADC #-35
+         TCD        ; Set DP $0300
+         PEI $22
+         PEI $20
+         ADC #194
+         TCS        ; Set S  $03C3
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0463
+         ADC #-99
+         TCD        ; Set DP $0400
+         PEI $62
+         PEI $60
+         JMP BRET   ;161 cycles
+		 end
+blit8_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #7
+         TCS        ; Set S  $0007
+         PEI $06
+         PEI $04
+         ADC #160
+         TCS        ; Set S  $00A7
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0147
+         ADC #-71
+         TCD        ; Set DP $0100
+         PEI $46
+         PEI $44
+         ADC #230
+         TCS        ; Set S  $01E7
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0287
+         ADC #-135
+         TCD        ; Set DP $0200
+         PEI $86
+         PEI $84
+         ADC #294
+         TCS        ; Set S  $0327
+         ADC #-39
+         TCD        ; Set DP $0300
+         PEI $26
+         PEI $24
+         ADC #198
+         TCS        ; Set S  $03C7
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0467
+         ADC #-103
+         TCD        ; Set DP $0400
+         PEI $66
+         PEI $64
+         JMP BRET   ;161 cycles
+		 end
+blit16_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #11
+         TCS        ; Set S  $000B
+         PEI $0A
+         PEI $08
+         ADC #160
+         TCS        ; Set S  $00AB
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $014B
+         ADC #-75
+         TCD        ; Set DP $0100
+         PEI $4A
+         PEI $48
+         ADC #234
+         TCS        ; Set S  $01EB
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $028B
+         ADC #-139
+         TCD        ; Set DP $0200
+         PEI $8A
+         PEI $88
+         ADC #298
+         TCS        ; Set S  $032B
+         ADC #-43
+         TCD        ; Set DP $0300
+         PEI $2A
+         PEI $28
+         ADC #202
+         TCS        ; Set S  $03CB
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $046B
+         ADC #-107
+         TCD        ; Set DP $0400
+         PEI $6A
+         PEI $68
+         JMP BRET   ;161 cycles
+		 end
+blit24_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #15
+         TCS        ; Set S  $000F
+         PEI $0E
+         PEI $0C
+         ADC #160
+         TCS        ; Set S  $00AF
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $014F
+         ADC #-79
+         TCD        ; Set DP $0100
+         PEI $4E
+         PEI $4C
+         ADC #238
+         TCS        ; Set S  $01EF
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $028F
+         ADC #-143
+         TCD        ; Set DP $0200
+         PEI $8E
+         PEI $8C
+         ADC #302
+         TCS        ; Set S  $032F
+         ADC #-47
+         TCD        ; Set DP $0300
+         PEI $2E
+         PEI $2C
+         ADC #206
+         TCS        ; Set S  $03CF
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $046F
+         ADC #-111
+         TCD        ; Set DP $0400
+         PEI $6E
+         PEI $6C
+         JMP BRET   ;161 cycles
+		 end
+blit32_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #19
+         TCS        ; Set S  $0013
+         PEI $12
+         PEI $10
+         ADC #160
+         TCS        ; Set S  $00B3
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0153
+         ADC #-83
+         TCD        ; Set DP $0100
+         PEI $52
+         PEI $50
+         ADC #242
+         TCS        ; Set S  $01F3
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0293
+         ADC #-147
+         TCD        ; Set DP $0200
+         PEI $92
+         PEI $90
+         ADC #306
+         TCS        ; Set S  $0333
+         ADC #-51
+         TCD        ; Set DP $0300
+         PEI $32
+         PEI $30
+         ADC #210
+         TCS        ; Set S  $03D3
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0473
+         ADC #-115
+         TCD        ; Set DP $0400
+         PEI $72
+         PEI $70
+         JMP BRET   ;161 cycles
+		 end
+blit40_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #23
+         TCS        ; Set S  $0017
+         PEI $16
+         PEI $14
+         ADC #160
+         TCS        ; Set S  $00B7
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0157
+         ADC #-87
+         TCD        ; Set DP $0100
+         PEI $56
+         PEI $54
+         ADC #246
+         TCS        ; Set S  $01F7
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $0297
+         ADC #-151
+         TCD        ; Set DP $0200
+         PEI $96
+         PEI $94
+         ADC #310
+         TCS        ; Set S  $0337
+         ADC #-55
+         TCD        ; Set DP $0300
+         PEI $36
+         PEI $34
+         ADC #214
+         TCS        ; Set S  $03D7
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0477
+         ADC #-119
+         TCD        ; Set DP $0400
+         PEI $76
+         PEI $74
+         JMP BRET   ;161 cycles
+		 end
+blit48_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #27
+         TCS        ; Set S  $001B
+         PEI $1A
+         PEI $18
+         ADC #160
+         TCS        ; Set S  $00BB
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $015B
+         ADC #-91
+         TCD        ; Set DP $0100
+         PEI $5A
+         PEI $58
+         ADC #250
+         TCS        ; Set S  $01FB
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $029B
+         ADC #-155
+         TCD        ; Set DP $0200
+         PEI $9A
+         PEI $98
+         ADC #314
+         TCS        ; Set S  $033B
+         ADC #-59
+         TCD        ; Set DP $0300
+         PEI $3A
+         PEI $38
+         ADC #218
+         TCS        ; Set S  $03DB
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $047B
+         ADC #-123
+         TCD        ; Set DP $0400
+         PEI $7A
+         PEI $78
+         JMP BRET   ;161 cycles
+		 end
+blit56_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #31
+         TCS        ; Set S  $001F
+         PEI $1E
+         PEI $1C
+         ADC #160
+         TCS        ; Set S  $00BF
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $015F
+         ADC #-95
+         TCD        ; Set DP $0100
+         PEI $5E
+         PEI $5C
+         ADC #254
+         TCS        ; Set S  $01FF
+         PEI $FE
+         PEI $FC
+         ADC #160
+         TCS        ; Set S  $029F
+         ADC #-159
+         TCD        ; Set DP $0200
+         PEI $9E
+         PEI $9C
+         ADC #318
+         TCS        ; Set S  $033F
+         ADC #-63
+         TCD        ; Set DP $0300
+         PEI $3E
+         PEI $3C
+         ADC #222
+         TCS        ; Set S  $03DF
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $047F
+         ADC #-127
+         TCD        ; Set DP $0400
+         PEI $7E
+         PEI $7C
+         JMP BRET   ;161 cycles
+		 end
+blit64_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #35
+         TCS        ; Set S  $0023
+         PEI $22
+         PEI $20
+         ADC #160
+         TCS        ; Set S  $00C3
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0163
+         ADC #-99
+         TCD        ; Set DP $0100
+         PEI $62
+         PEI $60
+         ADC #258
+         TCS        ; Set S  $0203
+         ADC #-3
+         TCD        ; Set DP $0200
+         PEI $02
+         PEI $00
+         ADC #162
+         TCS        ; Set S  $02A3
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0343
+         ADC #-67
+         TCD        ; Set DP $0300
+         PEI $42
+         PEI $40
+         ADC #226
+         TCS        ; Set S  $03E3
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0483
+         ADC #-131
+         TCD        ; Set DP $0400
+         PEI $82
+         PEI $80
+         JMP BRET   ;161 cycles
+		 end
+blit72_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #39
+         TCS        ; Set S  $0027
+         PEI $26
+         PEI $24
+         ADC #160
+         TCS        ; Set S  $00C7
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0167
+         ADC #-103
+         TCD        ; Set DP $0100
+         PEI $66
+         PEI $64
+         ADC #262
+         TCS        ; Set S  $0207
+         ADC #-7
+         TCD        ; Set DP $0200
+         PEI $06
+         PEI $04
+         ADC #166
+         TCS        ; Set S  $02A7
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0347
+         ADC #-71
+         TCD        ; Set DP $0300
+         PEI $46
+         PEI $44
+         ADC #230
+         TCS        ; Set S  $03E7
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0487
+         ADC #-135
+         TCD        ; Set DP $0400
+         PEI $86
+         PEI $84
+         JMP BRET   ;161 cycles
+		 end
+blit80_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #43
+         TCS        ; Set S  $002B
+         PEI $2A
+         PEI $28
+         ADC #160
+         TCS        ; Set S  $00CB
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $016B
+         ADC #-107
+         TCD        ; Set DP $0100
+         PEI $6A
+         PEI $68
+         ADC #266
+         TCS        ; Set S  $020B
+         ADC #-11
+         TCD        ; Set DP $0200
+         PEI $0A
+         PEI $08
+         ADC #170
+         TCS        ; Set S  $02AB
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $034B
+         ADC #-75
+         TCD        ; Set DP $0300
+         PEI $4A
+         PEI $48
+         ADC #234
+         TCS        ; Set S  $03EB
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $048B
+         ADC #-139
+         TCD        ; Set DP $0400
+         PEI $8A
+         PEI $88
+         JMP BRET   ;161 cycles
+		 end
+blit88_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #47
+         TCS        ; Set S  $002F
+         PEI $2E
+         PEI $2C
+         ADC #160
+         TCS        ; Set S  $00CF
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $016F
+         ADC #-111
+         TCD        ; Set DP $0100
+         PEI $6E
+         PEI $6C
+         ADC #270
+         TCS        ; Set S  $020F
+         ADC #-15
+         TCD        ; Set DP $0200
+         PEI $0E
+         PEI $0C
+         ADC #174
+         TCS        ; Set S  $02AF
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $034F
+         ADC #-79
+         TCD        ; Set DP $0300
+         PEI $4E
+         PEI $4C
+         ADC #238
+         TCS        ; Set S  $03EF
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $048F
+         ADC #-143
+         TCD        ; Set DP $0400
+         PEI $8E
+         PEI $8C
+         JMP BRET   ;161 cycles
+		 end
+blit96_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #51
+         TCS        ; Set S  $0033
+         PEI $32
+         PEI $30
+         ADC #160
+         TCS        ; Set S  $00D3
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0173
+         ADC #-115
+         TCD        ; Set DP $0100
+         PEI $72
+         PEI $70
+         ADC #274
+         TCS        ; Set S  $0213
+         ADC #-19
+         TCD        ; Set DP $0200
+         PEI $12
+         PEI $10
+         ADC #178
+         TCS        ; Set S  $02B3
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0353
+         ADC #-83
+         TCD        ; Set DP $0300
+         PEI $52
+         PEI $50
+         ADC #242
+         TCS        ; Set S  $03F3
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0493
+         ADC #-147
+         TCD        ; Set DP $0400
+         PEI $92
+         PEI $90
+         JMP BRET   ;161 cycles
+		 end
+blit104_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #55
+         TCS        ; Set S  $0037
+         PEI $36
+         PEI $34
+         ADC #160
+         TCS        ; Set S  $00D7
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0177
+         ADC #-119
+         TCD        ; Set DP $0100
+         PEI $76
+         PEI $74
+         ADC #278
+         TCS        ; Set S  $0217
+         ADC #-23
+         TCD        ; Set DP $0200
+         PEI $16
+         PEI $14
+         ADC #182
+         TCS        ; Set S  $02B7
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0357
+         ADC #-87
+         TCD        ; Set DP $0300
+         PEI $56
+         PEI $54
+         ADC #246
+         TCS        ; Set S  $03F7
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $0497
+         ADC #-151
+         TCD        ; Set DP $0400
+         PEI $96
+         PEI $94
+         JMP BRET   ;161 cycles
+		 end
+blit112_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #59
+         TCS        ; Set S  $003B
+         PEI $3A
+         PEI $38
+         ADC #160
+         TCS        ; Set S  $00DB
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $017B
+         ADC #-123
+         TCD        ; Set DP $0100
+         PEI $7A
+         PEI $78
+         ADC #282
+         TCS        ; Set S  $021B
+         ADC #-27
+         TCD        ; Set DP $0200
+         PEI $1A
+         PEI $18
+         ADC #186
+         TCS        ; Set S  $02BB
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $035B
+         ADC #-91
+         TCD        ; Set DP $0300
+         PEI $5A
+         PEI $58
+         ADC #250
+         TCS        ; Set S  $03FB
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $049B
+         ADC #-155
+         TCD        ; Set DP $0400
+         PEI $9A
+         PEI $98
+         JMP BRET   ;161 cycles
+		 end
+blit120_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #63
+         TCS        ; Set S  $003F
+         PEI $3E
+         PEI $3C
+         ADC #160
+         TCS        ; Set S  $00DF
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $017F
+         ADC #-127
+         TCD        ; Set DP $0100
+         PEI $7E
+         PEI $7C
+         ADC #286
+         TCS        ; Set S  $021F
+         ADC #-31
+         TCD        ; Set DP $0200
+         PEI $1E
+         PEI $1C
+         ADC #190
+         TCS        ; Set S  $02BF
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $035F
+         ADC #-95
+         TCD        ; Set DP $0300
+         PEI $5E
+         PEI $5C
+         ADC #254
+         TCS        ; Set S  $03FF
+         PEI $FE
+         PEI $FC
+         ADC #160
+         TCS        ; Set S  $049F
+         ADC #-159
+         TCD        ; Set DP $0400
+         PEI $9E
+         PEI $9C
+         JMP BRET   ;161 cycles
+		 end
+blit128_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #67
+         TCS        ; Set S  $0043
+         PEI $42
+         PEI $40
+         ADC #160
+         TCS        ; Set S  $00E3
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0183
+         ADC #-131
+         TCD        ; Set DP $0100
+         PEI $82
+         PEI $80
+         ADC #290
+         TCS        ; Set S  $0223
+         ADC #-35
+         TCD        ; Set DP $0200
+         PEI $22
+         PEI $20
+         ADC #194
+         TCS        ; Set S  $02C3
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0363
+         ADC #-99
+         TCD        ; Set DP $0300
+         PEI $62
+         PEI $60
+         ADC #258
+         TCS        ; Set S  $0403
+         ADC #-3
+         TCD        ; Set DP $0400
+         PEI $02
+         PEI $00
+         ADC #162
+         TCS        ; Set S  $04A3
+         PEI $A2
+         PEI $A0
+         JMP BRET   ;161 cycles
+		 end
+blit136_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #71
+         TCS        ; Set S  $0047
+         PEI $46
+         PEI $44
+         ADC #160
+         TCS        ; Set S  $00E7
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0187
+         ADC #-135
+         TCD        ; Set DP $0100
+         PEI $86
+         PEI $84
+         ADC #294
+         TCS        ; Set S  $0227
+         ADC #-39
+         TCD        ; Set DP $0200
+         PEI $26
+         PEI $24
+         ADC #198
+         TCS        ; Set S  $02C7
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0367
+         ADC #-103
+         TCD        ; Set DP $0300
+         PEI $66
+         PEI $64
+         ADC #262
+         TCS        ; Set S  $0407
+         ADC #-7
+         TCD        ; Set DP $0400
+         PEI $06
+         PEI $04
+         ADC #166
+         TCS        ; Set S  $04A7
+         PEI $A6
+         PEI $A4
+         JMP BRET   ;161 cycles
+		 end
+blit144_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #75
+         TCS        ; Set S  $004B
+         PEI $4A
+         PEI $48
+         ADC #160
+         TCS        ; Set S  $00EB
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $018B
+         ADC #-139
+         TCD        ; Set DP $0100
+         PEI $8A
+         PEI $88
+         ADC #298
+         TCS        ; Set S  $022B
+         ADC #-43
+         TCD        ; Set DP $0200
+         PEI $2A
+         PEI $28
+         ADC #202
+         TCS        ; Set S  $02CB
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $036B
+         ADC #-107
+         TCD        ; Set DP $0300
+         PEI $6A
+         PEI $68
+         ADC #266
+         TCS        ; Set S  $040B
+         ADC #-11
+         TCD        ; Set DP $0400
+         PEI $0A
+         PEI $08
+         ADC #170
+         TCS        ; Set S  $04AB
+         PEI $AA
+         PEI $A8
+         JMP BRET   ;161 cycles
+		 end
+blit152_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #79
+         TCS        ; Set S  $004F
+         PEI $4E
+         PEI $4C
+         ADC #160
+         TCS        ; Set S  $00EF
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $018F
+         ADC #-143
+         TCD        ; Set DP $0100
+         PEI $8E
+         PEI $8C
+         ADC #302
+         TCS        ; Set S  $022F
+         ADC #-47
+         TCD        ; Set DP $0200
+         PEI $2E
+         PEI $2C
+         ADC #206
+         TCS        ; Set S  $02CF
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $036F
+         ADC #-111
+         TCD        ; Set DP $0300
+         PEI $6E
+         PEI $6C
+         ADC #270
+         TCS        ; Set S  $040F
+         ADC #-15
+         TCD        ; Set DP $0400
+         PEI $0E
+         PEI $0C
+         ADC #174
+         TCS        ; Set S  $04AF
+         PEI $AE
+         PEI $AC
+         JMP BRET   ;161 cycles
+		 end
+blit160_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #83
+         TCS        ; Set S  $0053
+         PEI $52
+         PEI $50
+         ADC #160
+         TCS        ; Set S  $00F3
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0193
+         ADC #-147
+         TCD        ; Set DP $0100
+         PEI $92
+         PEI $90
+         ADC #306
+         TCS        ; Set S  $0233
+         ADC #-51
+         TCD        ; Set DP $0200
+         PEI $32
+         PEI $30
+         ADC #210
+         TCS        ; Set S  $02D3
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0373
+         ADC #-115
+         TCD        ; Set DP $0300
+         PEI $72
+         PEI $70
+         ADC #274
+         TCS        ; Set S  $0413
+         ADC #-19
+         TCD        ; Set DP $0400
+         PEI $12
+         PEI $10
+         ADC #178
+         TCS        ; Set S  $04B3
+         PEI $B2
+         PEI $B0
+         JMP BRET   ;161 cycles
+		 end
+blit168_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #87
+         TCS        ; Set S  $0057
+         PEI $56
+         PEI $54
+         ADC #160
+         TCS        ; Set S  $00F7
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $0197
+         ADC #-151
+         TCD        ; Set DP $0100
+         PEI $96
+         PEI $94
+         ADC #310
+         TCS        ; Set S  $0237
+         ADC #-55
+         TCD        ; Set DP $0200
+         PEI $36
+         PEI $34
+         ADC #214
+         TCS        ; Set S  $02D7
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0377
+         ADC #-119
+         TCD        ; Set DP $0300
+         PEI $76
+         PEI $74
+         ADC #278
+         TCS        ; Set S  $0417
+         ADC #-23
+         TCD        ; Set DP $0400
+         PEI $16
+         PEI $14
+         ADC #182
+         TCS        ; Set S  $04B7
+         PEI $B6
+         PEI $B4
+         JMP BRET   ;161 cycles
+		 end
+blit176_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #91
+         TCS        ; Set S  $005B
+         PEI $5A
+         PEI $58
+         ADC #160
+         TCS        ; Set S  $00FB
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $019B
+         ADC #-155
+         TCD        ; Set DP $0100
+         PEI $9A
+         PEI $98
+         ADC #314
+         TCS        ; Set S  $023B
+         ADC #-59
+         TCD        ; Set DP $0200
+         PEI $3A
+         PEI $38
+         ADC #218
+         TCS        ; Set S  $02DB
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $037B
+         ADC #-123
+         TCD        ; Set DP $0300
+         PEI $7A
+         PEI $78
+         ADC #282
+         TCS        ; Set S  $041B
+         ADC #-27
+         TCD        ; Set DP $0400
+         PEI $1A
+         PEI $18
+         ADC #186
+         TCS        ; Set S  $04BB
+         PEI $BA
+         PEI $B8
+         JMP BRET   ;161 cycles
+		 end
+blit184_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #95
+         TCS        ; Set S  $005F
+         PEI $5E
+         PEI $5C
+         ADC #160
+         TCS        ; Set S  $00FF
+         PEI $FE
+         PEI $FC
+         ADC #160
+         TCS        ; Set S  $019F
+         ADC #-159
+         TCD        ; Set DP $0100
+         PEI $9E
+         PEI $9C
+         ADC #318
+         TCS        ; Set S  $023F
+         ADC #-63
+         TCD        ; Set DP $0200
+         PEI $3E
+         PEI $3C
+         ADC #222
+         TCS        ; Set S  $02DF
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $037F
+         ADC #-127
+         TCD        ; Set DP $0300
+         PEI $7E
+         PEI $7C
+         ADC #286
+         TCS        ; Set S  $041F
+         ADC #-31
+         TCD        ; Set DP $0400
+         PEI $1E
+         PEI $1C
+         ADC #190
+         TCS        ; Set S  $04BF
+         PEI $BE
+         PEI $BC
+         JMP BRET   ;161 cycles
+		 end
+blit192_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #99
+         TCS        ; Set S  $0063
+         PEI $62
+         PEI $60
+         ADC #160
+         TCS        ; Set S  $0103
+         ADC #-3
+         TCD        ; Set DP $0100
+         PEI $02
+         PEI $00
+         ADC #162
+         TCS        ; Set S  $01A3
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0243
+         ADC #-67
+         TCD        ; Set DP $0200
+         PEI $42
+         PEI $40
+         ADC #226
+         TCS        ; Set S  $02E3
+         PEI $E2
+         PEI $E0
+         ADC #160
+         TCS        ; Set S  $0383
+         ADC #-131
+         TCD        ; Set DP $0300
+         PEI $82
+         PEI $80
+         ADC #290
+         TCS        ; Set S  $0423
+         ADC #-35
+         TCD        ; Set DP $0400
+         PEI $22
+         PEI $20
+         ADC #194
+         TCS        ; Set S  $04C3
+         PEI $C2
+         PEI $C0
+         JMP BRET   ;161 cycles
+		 end
+blit200_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #103
+         TCS        ; Set S  $0067
+         PEI $66
+         PEI $64
+         ADC #160
+         TCS        ; Set S  $0107
+         ADC #-7
+         TCD        ; Set DP $0100
+         PEI $06
+         PEI $04
+         ADC #166
+         TCS        ; Set S  $01A7
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0247
+         ADC #-71
+         TCD        ; Set DP $0200
+         PEI $46
+         PEI $44
+         ADC #230
+         TCS        ; Set S  $02E7
+         PEI $E6
+         PEI $E4
+         ADC #160
+         TCS        ; Set S  $0387
+         ADC #-135
+         TCD        ; Set DP $0300
+         PEI $86
+         PEI $84
+         ADC #294
+         TCS        ; Set S  $0427
+         ADC #-39
+         TCD        ; Set DP $0400
+         PEI $26
+         PEI $24
+         ADC #198
+         TCS        ; Set S  $04C7
+         PEI $C6
+         PEI $C4
+         JMP BRET   ;161 cycles
+		 end
+blit208_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #107
+         TCS        ; Set S  $006B
+         PEI $6A
+         PEI $68
+         ADC #160
+         TCS        ; Set S  $010B
+         ADC #-11
+         TCD        ; Set DP $0100
+         PEI $0A
+         PEI $08
+         ADC #170
+         TCS        ; Set S  $01AB
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $024B
+         ADC #-75
+         TCD        ; Set DP $0200
+         PEI $4A
+         PEI $48
+         ADC #234
+         TCS        ; Set S  $02EB
+         PEI $EA
+         PEI $E8
+         ADC #160
+         TCS        ; Set S  $038B
+         ADC #-139
+         TCD        ; Set DP $0300
+         PEI $8A
+         PEI $88
+         ADC #298
+         TCS        ; Set S  $042B
+         ADC #-43
+         TCD        ; Set DP $0400
+         PEI $2A
+         PEI $28
+         ADC #202
+         TCS        ; Set S  $04CB
+         PEI $CA
+         PEI $C8
+         JMP BRET   ;161 cycles
+		 end
+blit216_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #111
+         TCS        ; Set S  $006F
+         PEI $6E
+         PEI $6C
+         ADC #160
+         TCS        ; Set S  $010F
+         ADC #-15
+         TCD        ; Set DP $0100
+         PEI $0E
+         PEI $0C
+         ADC #174
+         TCS        ; Set S  $01AF
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $024F
+         ADC #-79
+         TCD        ; Set DP $0200
+         PEI $4E
+         PEI $4C
+         ADC #238
+         TCS        ; Set S  $02EF
+         PEI $EE
+         PEI $EC
+         ADC #160
+         TCS        ; Set S  $038F
+         ADC #-143
+         TCD        ; Set DP $0300
+         PEI $8E
+         PEI $8C
+         ADC #302
+         TCS        ; Set S  $042F
+         ADC #-47
+         TCD        ; Set DP $0400
+         PEI $2E
+         PEI $2C
+         ADC #206
+         TCS        ; Set S  $04CF
+         PEI $CE
+         PEI $CC
+         JMP BRET   ;161 cycles
+		 end
+blit224_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #115
+         TCS        ; Set S  $0073
+         PEI $72
+         PEI $70
+         ADC #160
+         TCS        ; Set S  $0113
+         ADC #-19
+         TCD        ; Set DP $0100
+         PEI $12
+         PEI $10
+         ADC #178
+         TCS        ; Set S  $01B3
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0253
+         ADC #-83
+         TCD        ; Set DP $0200
+         PEI $52
+         PEI $50
+         ADC #242
+         TCS        ; Set S  $02F3
+         PEI $F2
+         PEI $F0
+         ADC #160
+         TCS        ; Set S  $0393
+         ADC #-147
+         TCD        ; Set DP $0300
+         PEI $92
+         PEI $90
+         ADC #306
+         TCS        ; Set S  $0433
+         ADC #-51
+         TCD        ; Set DP $0400
+         PEI $32
+         PEI $30
+         ADC #210
+         TCS        ; Set S  $04D3
+         PEI $D2
+         PEI $D0
+         JMP BRET   ;161 cycles
+		 end
+blit232_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #119
+         TCS        ; Set S  $0077
+         PEI $76
+         PEI $74
+         ADC #160
+         TCS        ; Set S  $0117
+         ADC #-23
+         TCD        ; Set DP $0100
+         PEI $16
+         PEI $14
+         ADC #182
+         TCS        ; Set S  $01B7
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0257
+         ADC #-87
+         TCD        ; Set DP $0200
+         PEI $56
+         PEI $54
+         ADC #246
+         TCS        ; Set S  $02F7
+         PEI $F6
+         PEI $F4
+         ADC #160
+         TCS        ; Set S  $0397
+         ADC #-151
+         TCD        ; Set DP $0300
+         PEI $96
+         PEI $94
+         ADC #310
+         TCS        ; Set S  $0437
+         ADC #-55
+         TCD        ; Set DP $0400
+         PEI $36
+         PEI $34
+         ADC #214
+         TCS        ; Set S  $04D7
+         PEI $D6
+         PEI $D4
+         JMP BRET   ;161 cycles
+		 end
+blit240_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #123
+         TCS        ; Set S  $007B
+         PEI $7A
+         PEI $78
+         ADC #160
+         TCS        ; Set S  $011B
+         ADC #-27
+         TCD        ; Set DP $0100
+         PEI $1A
+         PEI $18
+         ADC #186
+         TCS        ; Set S  $01BB
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $025B
+         ADC #-91
+         TCD        ; Set DP $0200
+         PEI $5A
+         PEI $58
+         ADC #250
+         TCS        ; Set S  $02FB
+         PEI $FA
+         PEI $F8
+         ADC #160
+         TCS        ; Set S  $039B
+         ADC #-155
+         TCD        ; Set DP $0300
+         PEI $9A
+         PEI $98
+         ADC #314
+         TCS        ; Set S  $043B
+         ADC #-59
+         TCD        ; Set DP $0400
+         PEI $3A
+         PEI $38
+         ADC #218
+         TCS        ; Set S  $04DB
+         PEI $DA
+         PEI $D8
+         JMP BRET   ;161 cycles
+		 end
+blit248_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #127
+         TCS        ; Set S  $007F
+         PEI $7E
+         PEI $7C
+         ADC #160
+         TCS        ; Set S  $011F
+         ADC #-31
+         TCD        ; Set DP $0100
+         PEI $1E
+         PEI $1C
+         ADC #190
+         TCS        ; Set S  $01BF
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $025F
+         ADC #-95
+         TCD        ; Set DP $0200
+         PEI $5E
+         PEI $5C
+         ADC #254
+         TCS        ; Set S  $02FF
+         PEI $FE
+         PEI $FC
+         ADC #160
+         TCS        ; Set S  $039F
+         ADC #-159
+         TCD        ; Set DP $0300
+         PEI $9E
+         PEI $9C
+         ADC #318
+         TCS        ; Set S  $043F
+         ADC #-63
+         TCD        ; Set DP $0400
+         PEI $3E
+         PEI $3C
+         ADC #222
+         TCS        ; Set S  $04DF
+         PEI $DE
+         PEI $DC
+         JMP BRET   ;161 cycles
+		 end
+blit256_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #131
+         TCS        ; Set S  $0083
+         PEI $82
+         PEI $80
+         ADC #160
+         TCS        ; Set S  $0123
+         ADC #-35
+         TCD        ; Set DP $0100
+         PEI $22
+         PEI $20
+         ADC #194
+         TCS        ; Set S  $01C3
+         PEI $C2
+         PEI $C0
+         ADC #160
+         TCS        ; Set S  $0263
+         ADC #-99
+         TCD        ; Set DP $0200
+         PEI $62
+         PEI $60
+         ADC #258
+         TCS        ; Set S  $0303
+         ADC #-3
+         TCD        ; Set DP $0300
+         PEI $02
+         PEI $00
+         ADC #162
+         TCS        ; Set S  $03A3
+         PEI $A2
+         PEI $A0
+         ADC #160
+         TCS        ; Set S  $0443
+         ADC #-67
+         TCD        ; Set DP $0400
+         PEI $42
+         PEI $40
+         ADC #226
+         TCS        ; Set S  $04E3
+         PEI $E2
+         PEI $E0
+         JMP BRET   ;161 cycles
+		 end
+blit264_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #135
+         TCS        ; Set S  $0087
+         PEI $86
+         PEI $84
+         ADC #160
+         TCS        ; Set S  $0127
+         ADC #-39
+         TCD        ; Set DP $0100
+         PEI $26
+         PEI $24
+         ADC #198
+         TCS        ; Set S  $01C7
+         PEI $C6
+         PEI $C4
+         ADC #160
+         TCS        ; Set S  $0267
+         ADC #-103
+         TCD        ; Set DP $0200
+         PEI $66
+         PEI $64
+         ADC #262
+         TCS        ; Set S  $0307
+         ADC #-7
+         TCD        ; Set DP $0300
+         PEI $06
+         PEI $04
+         ADC #166
+         TCS        ; Set S  $03A7
+         PEI $A6
+         PEI $A4
+         ADC #160
+         TCS        ; Set S  $0447
+         ADC #-71
+         TCD        ; Set DP $0400
+         PEI $46
+         PEI $44
+         ADC #230
+         TCS        ; Set S  $04E7
+         PEI $E6
+         PEI $E4
+         JMP BRET   ;161 cycles
+		 end
+blit272_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #139
+         TCS        ; Set S  $008B
+         PEI $8A
+         PEI $88
+         ADC #160
+         TCS        ; Set S  $012B
+         ADC #-43
+         TCD        ; Set DP $0100
+         PEI $2A
+         PEI $28
+         ADC #202
+         TCS        ; Set S  $01CB
+         PEI $CA
+         PEI $C8
+         ADC #160
+         TCS        ; Set S  $026B
+         ADC #-107
+         TCD        ; Set DP $0200
+         PEI $6A
+         PEI $68
+         ADC #266
+         TCS        ; Set S  $030B
+         ADC #-11
+         TCD        ; Set DP $0300
+         PEI $0A
+         PEI $08
+         ADC #170
+         TCS        ; Set S  $03AB
+         PEI $AA
+         PEI $A8
+         ADC #160
+         TCS        ; Set S  $044B
+         ADC #-75
+         TCD        ; Set DP $0400
+         PEI $4A
+         PEI $48
+         ADC #234
+         TCS        ; Set S  $04EB
+         PEI $EA
+         PEI $E8
+         JMP BRET   ;161 cycles
+		 end
+blit280_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #143
+         TCS        ; Set S  $008F
+         PEI $8E
+         PEI $8C
+         ADC #160
+         TCS        ; Set S  $012F
+         ADC #-47
+         TCD        ; Set DP $0100
+         PEI $2E
+         PEI $2C
+         ADC #206
+         TCS        ; Set S  $01CF
+         PEI $CE
+         PEI $CC
+         ADC #160
+         TCS        ; Set S  $026F
+         ADC #-111
+         TCD        ; Set DP $0200
+         PEI $6E
+         PEI $6C
+         ADC #270
+         TCS        ; Set S  $030F
+         ADC #-15
+         TCD        ; Set DP $0300
+         PEI $0E
+         PEI $0C
+         ADC #174
+         TCS        ; Set S  $03AF
+         PEI $AE
+         PEI $AC
+         ADC #160
+         TCS        ; Set S  $044F
+         ADC #-79
+         TCD        ; Set DP $0400
+         PEI $4E
+         PEI $4C
+         ADC #238
+         TCS        ; Set S  $04EF
+         PEI $EE
+         PEI $EC
+         JMP BRET   ;161 cycles
+		 end
+blit288_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #147
+         TCS        ; Set S  $0093
+         PEI $92
+         PEI $90
+         ADC #160
+         TCS        ; Set S  $0133
+         ADC #-51
+         TCD        ; Set DP $0100
+         PEI $32
+         PEI $30
+         ADC #210
+         TCS        ; Set S  $01D3
+         PEI $D2
+         PEI $D0
+         ADC #160
+         TCS        ; Set S  $0273
+         ADC #-115
+         TCD        ; Set DP $0200
+         PEI $72
+         PEI $70
+         ADC #274
+         TCS        ; Set S  $0313
+         ADC #-19
+         TCD        ; Set DP $0300
+         PEI $12
+         PEI $10
+         ADC #178
+         TCS        ; Set S  $03B3
+         PEI $B2
+         PEI $B0
+         ADC #160
+         TCS        ; Set S  $0453
+         ADC #-83
+         TCD        ; Set DP $0400
+         PEI $52
+         PEI $50
+         ADC #242
+         TCS        ; Set S  $04F3
+         PEI $F2
+         PEI $F0
+         JMP BRET   ;161 cycles
+		 end
+blit296_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #151
+         TCS        ; Set S  $0097
+         PEI $96
+         PEI $94
+         ADC #160
+         TCS        ; Set S  $0137
+         ADC #-55
+         TCD        ; Set DP $0100
+         PEI $36
+         PEI $34
+         ADC #214
+         TCS        ; Set S  $01D7
+         PEI $D6
+         PEI $D4
+         ADC #160
+         TCS        ; Set S  $0277
+         ADC #-119
+         TCD        ; Set DP $0200
+         PEI $76
+         PEI $74
+         ADC #278
+         TCS        ; Set S  $0317
+         ADC #-23
+         TCD        ; Set DP $0300
+         PEI $16
+         PEI $14
+         ADC #182
+         TCS        ; Set S  $03B7
+         PEI $B6
+         PEI $B4
+         ADC #160
+         TCS        ; Set S  $0457
+         ADC #-87
+         TCD        ; Set DP $0400
+         PEI $56
+         PEI $54
+         ADC #246
+         TCS        ; Set S  $04F7
+         PEI $F6
+         PEI $F4
+         JMP BRET   ;161 cycles
+		 end
+blit304_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #155
+         TCS        ; Set S  $009B
+         PEI $9A
+         PEI $98
+         ADC #160
+         TCS        ; Set S  $013B
+         ADC #-59
+         TCD        ; Set DP $0100
+         PEI $3A
+         PEI $38
+         ADC #218
+         TCS        ; Set S  $01DB
+         PEI $DA
+         PEI $D8
+         ADC #160
+         TCS        ; Set S  $027B
+         ADC #-123
+         TCD        ; Set DP $0200
+         PEI $7A
+         PEI $78
+         ADC #282
+         TCS        ; Set S  $031B
+         ADC #-27
+         TCD        ; Set DP $0300
+         PEI $1A
+         PEI $18
+         ADC #186
+         TCS        ; Set S  $03BB
+         PEI $BA
+         PEI $B8
+         ADC #160
+         TCS        ; Set S  $045B
+         ADC #-91
+         TCD        ; Set DP $0400
+         PEI $5A
+         PEI $58
+         ADC #250
+         TCS        ; Set S  $04FB
+         PEI $FA
+         PEI $F8
+         JMP BRET   ;161 cycles
+		 end
+blit312_8 start BLITCODE
+         TCD        ; Set DP $0000
+         ADC #159
+         TCS        ; Set S  $009F
+         PEI $9E
+         PEI $9C
+         ADC #160
+         TCS        ; Set S  $013F
+         ADC #-63
+         TCD        ; Set DP $0100
+         PEI $3E
+         PEI $3C
+         ADC #222
+         TCS        ; Set S  $01DF
+         PEI $DE
+         PEI $DC
+         ADC #160
+         TCS        ; Set S  $027F
+         ADC #-127
+         TCD        ; Set DP $0200
+         PEI $7E
+         PEI $7C
+         ADC #286
+         TCS        ; Set S  $031F
+         ADC #-31
+         TCD        ; Set DP $0300
+         PEI $1E
+         PEI $1C
+         ADC #190
+         TCS        ; Set S  $03BF
+         PEI $BE
+         PEI $BC
+         ADC #160
+         TCS        ; Set S  $045F
+         ADC #-95
+         TCD        ; Set DP $0400
+         PEI $5E
+         PEI $5C
+         ADC #254
+         TCS        ; Set S  $04FF
+         PEI $FE
+         PEI $FC
+         JMP BRET   ;161 cycles
+		 end
+*-------------------------------------------------------------------------------
+	
diff --git a/samples/apple2gs/gsos/asm/dbgfnt.s b/samples/apple2gs/gsos/asm/dbgfnt.s
new file mode 100644
index 0000000..cd91781
--- /dev/null
+++ b/samples/apple2gs/gsos/asm/dbgfnt.s
@@ -0,0 +1,2323 @@
+*
+* COMPILE DEBUG FONT
+*
+
+include common.i
+				 
+macro da addy
+{
+	dc.w addy
+}				 
+
+*
+* A = Tile Index
+* Y = Memory Address
+*
+	XDEF dbgprint_char
+;	SECTION code
+	
+dbgprint_char:
+	mx %00
+	cmp #96
+	blt .render_char  ; c=0
+	; Don't render indices that are too big
+	rts
+
+.render_char
+	asl
+	tax
+;	dc.b $BF
+;	dc.w jtable
+;	dc.b ^jtable
+	
+;	dc.t jtable
+	lda >jtable,x
+	sta >pjmp+1
+;	dc.b $8F
+;	dc.w pjmp+1
+;	dc.b ^pjmp
+	
+pjmp jmp $1234
+	
+	dc.t pjmp
+
+jtable
+    da tile0_0
+    da tile0_1
+    da tile0_2
+    da tile0_3
+    da tile0_4
+    da tile0_5
+    da tile0_6
+    da tile0_7
+    da tile0_8
+    da tile0_9
+    da tile0_10
+    da tile0_11
+    da tile0_12
+    da tile0_13
+    da tile0_14
+    da tile0_15
+    da tile0_16
+    da tile0_17
+    da tile0_18
+    da tile0_19
+    da tile0_20
+    da tile0_21
+    da tile0_22
+    da tile0_23
+    da tile0_24
+    da tile0_25
+    da tile0_26
+    da tile0_27
+    da tile0_28
+    da tile0_29
+    da tile0_30
+    da tile0_31
+    da tile0_32
+    da tile0_33
+    da tile0_34
+    da tile0_35
+    da tile0_36
+    da tile0_37
+    da tile0_38
+    da tile0_39
+    da tile0_40
+    da tile0_41
+    da tile0_42
+    da tile0_43
+    da tile0_44
+    da tile0_45
+    da tile0_46
+    da tile0_47
+    da tile0_48
+    da tile0_49
+    da tile0_50
+    da tile0_51
+    da tile0_52
+    da tile0_53
+    da tile0_54
+    da tile0_55
+    da tile0_56
+    da tile0_57
+    da tile0_58
+    da tile0_59
+    da tile0_60
+    da tile0_61
+    da tile0_62
+    da tile0_63
+    da tile0_64
+    da tile0_65
+    da tile0_66
+    da tile0_67
+    da tile0_68
+    da tile0_69
+    da tile0_70
+    da tile0_71
+    da tile0_72
+    da tile0_73
+    da tile0_74
+    da tile0_75
+    da tile0_76
+    da tile0_77
+    da tile0_78
+    da tile0_79
+    da tile0_80
+    da tile0_81
+    da tile0_82
+    da tile0_83
+    da tile0_84
+    da tile0_85
+    da tile0_86
+    da tile0_87
+    da tile0_88
+    da tile0_89
+    da tile0_90
+    da tile0_91
+    da tile0_92
+    da tile0_93
+    da tile0_94
+    da tile0_95
+tile0_0
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;105 cycles
+tile0_1
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;108 cycles
+tile0_2
+         LDA #$000E
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;108 cycles
+tile0_3
+         LDA #$000E
+         STA $0000,Y
+         STA $0002,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E0EE
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_4
+         LDA #$0E00
+         STA $0000,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $0142,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E0EE
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$0EE0
+         STA $0140,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         LDA #$E000
+         STA $0282,Y
+         RTS  ;126 cycles
+tile0_5
+         LDA #$000E
+         STA $0000,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0280,Y
+         LDA #$E0E0
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $03C0,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_6
+         LDA #$EE00
+         STA $0000,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$0E0E
+         STA $01E0,Y
+         LDA #$0EE0
+         STA $0320,Y
+         LDA #$E00E
+         STA $03C0,Y
+         RTS  ;126 cycles
+tile0_7
+         LDA #$E000
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;108 cycles
+tile0_8
+         LDA #$0000
+         STA $0000,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         RTS  ;114 cycles
+tile0_9
+         LDA #$E000
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         RTS  ;114 cycles
+tile0_10
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$0E0E
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$000E
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$EE00
+         STA $01E0,Y
+         LDA #$00E0
+         STA $01E2,Y
+         RTS  ;120 cycles
+tile0_11
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTS  ;114 cycles
+tile0_12
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $0320,Y
+         LDA #$00EE
+         STA $03C0,Y
+         RTS  ;111 cycles
+tile0_13
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTS  ;111 cycles
+tile0_14
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $0320,Y
+         STA $03C0,Y
+         RTS  ;108 cycles
+tile0_15
+         LDA #$0000
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0280,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $03C0,Y
+         LDA #$0E00
+         STA $01E0,Y
+         RTS  ;117 cycles
+tile0_16
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_17
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;108 cycles
+tile0_18
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$00E0
+         STA $0280,Y
+         STA $0320,Y
+         RTS  ;117 cycles
+tile0_19
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         RTS  ;117 cycles
+tile0_20
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_21
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;117 cycles
+tile0_22
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;117 cycles
+tile0_23
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         RTS  ;114 cycles
+tile0_24
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_25
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_26
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         RTS  ;108 cycles
+tile0_27
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0E00
+         STA $03C0,Y
+         RTS  ;111 cycles
+tile0_28
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         LDA #$EE00
+         STA $0140,Y
+         STA $0280,Y
+         RTS  ;111 cycles
+tile0_29
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE0E
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00EE
+         STA $0142,Y
+         STA $0282,Y
+         RTS  ;111 cycles
+tile0_30
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E00E
+         STA $00A0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         LDA #$0E00
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $0282,Y
+         RTS  ;114 cycles
+tile0_31
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_32
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         LDA #$EEE0
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$E0E0
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$00EE
+         STA $03C0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;126 cycles
+tile0_33
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_34
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_35
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_36
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_37
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTS  ;117 cycles
+tile0_38
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_39
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEE0
+         STA $01E0,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;120 cycles
+tile0_40
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_41
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_42
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0EE0
+         STA $0320,Y
+         RTS  ;117 cycles
+tile0_43
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_44
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTS  ;114 cycles
+tile0_45
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E00E
+         STA $00A2,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_46
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_47
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_48
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_49
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$E0E0
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_50
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_51
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;117 cycles
+tile0_52
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_53
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $03C0,Y
+         LDA #$00EE
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_54
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         LDA #$0E00
+         STA $03C0,Y
+         LDA #$0000
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_55
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E0E0
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$00EE
+         STA $0320,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_56
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_57
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_58
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$E000
+         STA $0280,Y
+         RTS  ;123 cycles
+tile0_59
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_60
+         LDA #$00E0
+         STA $0000,Y
+         STA $0282,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         RTS  ;117 cycles
+tile0_61
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;111 cycles
+tile0_62
+         LDA #$0E00
+         STA $0000,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A0,Y
+         LDA #$00E0
+         STA $00A2,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         RTS  ;117 cycles
+tile0_63
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTS  ;111 cycles
+tile0_64
+         LDA #$E00E
+         STA $0000,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         LDA #$0E00
+         STA $0140,Y
+         LDA #$00E0
+         STA $0142,Y
+         RTS  ;117 cycles
+tile0_65
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_66
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_67
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_68
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_69
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTS  ;117 cycles
+tile0_70
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_71
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEE0
+         STA $01E0,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;120 cycles
+tile0_72
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_73
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_74
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0EE0
+         STA $0320,Y
+         RTS  ;117 cycles
+tile0_75
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_76
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTS  ;114 cycles
+tile0_77
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E00E
+         STA $00A2,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_78
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_79
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_80
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_81
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$E0E0
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_82
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;120 cycles
+tile0_83
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTS  ;117 cycles
+tile0_84
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;114 cycles
+tile0_85
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $03C0,Y
+         LDA #$00EE
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_86
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         LDA #$0E00
+         STA $03C0,Y
+         LDA #$0000
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_87
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E0E0
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$00EE
+         STA $0320,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;123 cycles
+tile0_88
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_89
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;117 cycles
+tile0_90
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$E000
+         STA $0280,Y
+         RTS  ;123 cycles
+tile0_91
+         LDA #$0E00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $01E0,Y
+         RTS  ;117 cycles
+tile0_92
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;108 cycles
+tile0_93
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00E0
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$000E
+         STA $01E2,Y
+         RTS  ;114 cycles
+tile0_94
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0140,Y
+         LDA #$0E0E
+         STA $01E0,Y
+         LDA #$000E
+         STA $01E2,Y
+         LDA #$00E0
+         STA $0282,Y
+         RTS  ;117 cycles
+tile0_95
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTS  ;105 cycles
+
diff --git a/samples/apple2gs/gsos/asm/lz4.s b/samples/apple2gs/gsos/asm/lz4.s
new file mode 100644
index 0000000..43bad1f
--- /dev/null
+++ b/samples/apple2gs/gsos/asm/lz4.s
@@ -0,0 +1,173 @@
+*
+* ORCA/M Format!!
+* LZ4 Decompress by Brutal Deluxe!!!
+*
+include common.i
+include dp.s
+	
+	mx %00
+	xdef unpacklz4
+	xdef LZ4_Unpack
+
+unpacklz4:
+{
+if 1
+	phb
+	phk
+	plb
+	
+	sep #$20
+	lda dp.source+2
+	xba
+	lda dp.dest+2
+	rep #$31
+	tax
+	
+	lda dp.dest
+	sta LZ4_Dst+1
+
+	plb
+endif
+	rts
+}
+
+*
+* int LZ4_Unpack(u8* pDest, u8* pPackedSource);
+*
+
+LZ4_Unpack start ASMCODE
+
+pDest equ 5
+pPackedSource equ 9
+
+    phb
+    phk
+    plb
+
+    sep #$20
+    lda pPackedSource+2,s    ; Pull out the src/dst banks
+    xba
+    lda pDest+2,s   		 ; Pull out the src/dst banks
+
+    rep #$31
+    tax                      ; Temp save in X
+
+    lda pDest,s
+    sta LZ4_Dst+1
+
+    lda pPackedSource+1,s    ; address of packed source + 4, is the unpacked len
+    sta upl+2
+	
+    lda pPackedSource,s
+    adc #12
+    sta upl+1
+	
+upl lda >0                  ; packed length
+	adc #16 				; 16 bytes for packed buffer header
+    adc pPackedSource,s 	; start of packed buffer
+    tay                     ; y has the pack data stop address
+	
+    anop ; 1st packed Byte offset
+    lda pPackedSource,s     ; skip 16 byte header on the source
+    adc #16
+    pha
+    txa
+    plx
+	
+    jsr ASM_LZ4_Unpack
+    tay
+	
+    anop ; Copy the Return address
+    lda 1,s
+    sta pPackedSource,s
+    lda 3,s
+    sta pPackedSource+2,s
+		
+    tsc
+	sec
+    sbc #-8
+    tcs
+    tya    ; return length	
+
+    plb
+    rtl
+
+*-------------------------------------------------------------------------------
+ASM_LZ4_Unpack   STA  LZ4_Literal_3+1   ; Uncompress a LZ4 Packed Data buffer (64 KB max)
+                 SEP  #$20              ; A = Bank Src,Bank Dst
+                 STA  LZ4_Match_5+1     ; X = Header Size = 1st Packed Byte offset
+                 STA  LZ4_Match_5+2     ; Y = Pack Data Size
+                 XBA                    ;  => Return in A the length of unpacked Data
+                 STA  LZ4_ReadToken+3   
+                 STA  LZ4_Match_1+3     
+                 STA  LZ4_GetLength_1+3 
+                 REP  #$30 
+                 STY  LZ4_Limit+1
+*--
+LZ4_Dst          LDY  #$0000            ; Init Target unpacked Data offset
+LZ4_ReadToken    LDA  >$AA0000,X        ; Read Token Byte
+                 INX
+                 STA  LZ4_Match_2+1
+*----------------
+LZ4_Literal      AND  #$00F0            ; >>> Process Literal Bytes <<<
+                 BEQ  LZ4_Limit         ; No Literal
+                 CMP  #$00F0
+                 BNE  LZ4_Literal_1
+                 JSR  LZ4_GetLengthLit  ; Compute Literal Length with next bytes
+                 BRA  LZ4_Literal_2
+LZ4_Literal_1    LSR  A                 ; Literal Length use the 4 bit
+                 LSR  A
+                 LSR  A
+                 LSR  A
+*--
+LZ4_Literal_2    DEC  A                 ; Copy A+1 Bytes
+LZ4_Literal_3    MVN  $AA,$BB           ; Copy Literal Bytes from packed data buffer
+                 PHK                    ; X and Y are auto incremented
+                 PLB
+*----------------
+LZ4_Limit        CPX  #$AAAA            ; End Of Packed Data buffer ?
+                 BEQ  LZ4_End
+*----------------
+LZ4_Match        TYA                    ; >>> Process Match Bytes <<<
+                 SEC
+LZ4_Match_1      SBC  >$AA0000,X         ; Match Offset
+                 INX
+                 INX
+                 STA  LZ4_Match_4+1
+*--
+LZ4_Match_2      LDA  #$0000            ; Current Token Value
+                 AND  #$000F
+                 CMP  #$000F
+                 BNE  LZ4_Match_3
+                 JSR  LZ4_GetLengthMat  ; Compute Match Length with next bytes
+LZ4_Match_3      CLC
+                 ADC  #$0003            ; Minimum Match Length is 4 (-1 for the MVN)
+*--
+                 PHX
+LZ4_Match_4      LDX  #$AAAA            ; Match Byte Offset
+LZ4_Match_5      MVN  $BB,$BB           ; Copy Match Bytes from unpacked data buffer
+                 PHK                    ; X and Y are auto incremented
+                 PLB
+                 PLX
+*----------------
+                 BRA  LZ4_ReadToken
+*----------------
+LZ4_GetLengthLit LDA  #$000F            ; Compute Variable Length (Literal or Match)
+LZ4_GetLengthMat STA  LZ4_GetLength_2+1
+LZ4_GetLength_1  LDA  >$AA0000,X         ; Read Length Byte
+                 INX
+                 AND  #$00FF
+                 CMP  #$00FF
+                 BNE  LZ4_GetLength_3
+                 CLC
+LZ4_GetLength_2  ADC  #$000F
+                 STA  LZ4_GetLength_2+1
+                 BRA  LZ4_GetLength_1
+LZ4_GetLength_3  ADC  LZ4_GetLength_2+1
+                 RTS
+*----------------
+LZ4_End          TYA                    ; A = Length of Unpack Data
+                 RTS
+*-------------------------------------------------------------------------------
+                 end
+
diff --git a/samples/apple2gs/gsos/asm/start.s b/samples/apple2gs/gsos/asm/start.s
new file mode 100644
index 0000000..1086980
--- /dev/null
+++ b/samples/apple2gs/gsos/asm/start.s
@@ -0,0 +1,380 @@
+*-----   Merlin 16+ Directives
+
+	rel
+	dsk start.l
+ 
+	include common.i
+;	SECTION code
+   
+
+dbg	XREF dbgprint_char
+	XREF background.c1
+	
+STRING FontOrder = " !""#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
+	
+start	ent
+            mx        %00                  ; assemble in 16 bit
+
+            rel                            ; Build a relocated S16 file
+            include Locator.Macs.s       ; Macro Definition Files
+            include Mem.Macs.s
+            include Misc.Macs.s
+            include Util.Macs.s
+            include Sound.Macs.s
+
+*-----   Begin Of Program   ----------
+
+            PHK                            ; Data Bank Register = Program Bank Register
+            PLB
+			
+			; A has UserID
+			sta myID
+			
+			bra .next
+	  
+; work around OMF export bug
+			dc.t start	
+
+.next
+			; D = direct page address
+			; S = Stack Pointer
+			tsx
+			stx |mySP
+			tdc
+			sta |myDP
+			sec
+			tsc
+			sbc |myDP
+			inc 				; Count byte # 0
+			sta |myBank0Size 
+
+            JSR       ToolInit             ; Init Tools + Compact Memory + Ask Shadowing
+            JSR       BackupEnv            ; Backup environment (colors...)
+
+*-----   Your Code Starts Here   ----------
+			phb
+			lda #$7FFF       ; Length - 1
+			ldx #<background.c1 ; source address
+			ldy #$2000       ; dest address
+			mvn ^$e12000,^background.c1  ; dst/src addresses
+			plb
+{
+			ldy #$2000+(32*160)
+			jsr PrintE1
+			text "Stack ADDR:"
+			dc.b 0
+			
+			ldy #$2000+(40*160)
+			jsr PrintE1
+			text "   DP ADDR:"
+			dc.b 0
+			
+			ldy #$2000+(48*160)
+			jsr PrintE1
+			text "Bank0 Size:"
+			dc.b 0
+			
+			ldy #$2000+(80*160)+(4*0)
+			jsr PrintE1
+			text "[Press any key to Quit]"
+			dc.b 0
+			
+			ldy #$2000+(16*160)
+			jsr PrintE1
+			text "x65 OMF Test App"
+			dc.b 0
+}
+{
+	pool zpWork $e0-$100
+	zpWork zpCharNum.w
+	
+			phb
+			* get us into bank e1
+			pea $e1e1
+			plb
+			plb
+			
+			lda #32
+			ldy #$2000
+			clc
+.loop
+			sta <zpCharNum
+			jsr dbgprint_char
+			tya
+			adc #4
+			tay
+			lda <zpCharNum
+			inc
+			cmp #64
+			bcc .loop
+
+			plb
+}
+{
+			pea $e1e1
+			plb
+			plb
+			
+			ldy #$2000+(32*160)+(4*12)
+			lda >mySP
+			jsr PrintHEX
+			
+			ldy #$2000+(40*160)+(4*12)
+			lda >myDP
+			jsr PrintHEX
+			
+			ldy #$2000+(48*160)+(4*12)
+			lda >myBank0Size
+			jsr PrintHEX
+			
+			phk
+			plb
+}
+
+            JSR       WaitForKey           ; Wait until a Key is pressed
+
+*-----   End Of Program   ---------
+
+End         JSR       RestoreEnv           ; Restore environment (colors...)
+
+            JSR       ToolTerm             ; End up Tools
+            JMP       Exit                 ; Quit to the Launcher
+
+************************************************************
+*******         INIT TOOL SET/ FREE TOOL CODE        *******
+************************************************************
+
+ToolInit	
+;			_TLStartUp                     ; Start Tools
+;            PHA
+;            _MMStartUp                     ; Start Memory Manager Tool Set
+;            PLA
+;            STA       myID                 ; Get current ID
+*--
+            _MTStartUp                     ; Start Miscellaneous Tool Set
+*--
+*			clc 						   ; grab the memory next to my DP
+*			lda |myDP
+*			adc #$100
+*			pha
+*            _SoundStartUp                  ; Start Sound Tool Set
+*--
+            PushLong  #0                   ; Compact Memory
+            PushLong  #$8fffff
+            PushWord  myID
+            PushWord  #%11000000_00000000
+            PushLong  #0
+            _NewHandle
+            _DisposeHandle
+            _CompactMem
+*--
+	// Allocate Bank 01 memory  + 4K before and after (25 lines pre flow)
+	// $012000-$019BFF pixel data
+	// $019D00-$019DC7 SCB data
+	// $019E00-$019FFF Clut data
+	// $900 bytes afer, (14 lines buffer on the bottom, which will wreck SCB+CLUT
+
+            PushLong  #0                   ; Ask Shadowing Screen ($8000 bytes from $01/2000)
+            PushLong  #$9600
+            PushWord  myID
+            PushWord  #%11000000_00000011
+            PushLong  #$011000
+            _NewHandle
+            PLA
+            PLA
+			BCC :NoError
+*--
+:NoError
+            RTS
+
+*-------
+
+ToolTerm:
+*           _SoundShutDown                 ; Stop Tools
+            _MTShutDown
+            PushWord  myID
+            _DisposeAll
+;            PushWord  myID
+;            _MMShutDown
+;            _TLShutDown
+            RTS
+
+myID        ds      2                    ; ID of this Program in memory
+mySP		ds		2
+myDP		ds      2
+myBank0Size ds		2
+*---------------------------------------
+
+BackupEnv   SEP       #$30                 ; Backup Environment values (color, border...)
+            LDAL      $00C022
+            STA       BE_C022
+            LDAL      $00C029
+            STA       BE_C029
+            LDAL      $00C034
+            STA       BE_C034
+            LDAL      $00C035
+            STA       BE_C035
+            REP       #$30
+            RTS
+
+*-----
+
+RestoreEnv  SEP       #$30                 ; Restore Environment values (color, border...)
+            LDA       BE_C035
+            STAL      $00C035
+            LDA       BE_C034
+            STAL      $00C034
+            LDA       BE_C029
+            STAL      $00C029
+            LDA       BE_C022
+            STAL      $00C022
+            REP       #$30
+            RTS
+
+BE_C022     byte       00                   ; Background Color
+BE_C029     byte       00                   ; Linearization of the Graphic Page
+BE_C034     byte       00                   ; Border Color
+BE_C035     byte       00                   ; Shadowing
+
+************************************************************
+*******                   GS/OS CODE                 *******
+************************************************************
+
+GSOS        =         $E100A8
+
+*-------
+
+Exit        JSL       GSOS                 ; Quit Program
+            dc.w      $2029
+            dc.l      gsosQUIT
+
+*-------
+
+gsosQUIT    ds.w        2                    ; pCount
+            ds.b        4                    ; pathname
+            ds.b        2                    ; flags
+
+
+************************************************************
+*******            EVENT HANDLER CODE                *******
+************************************************************
+
+WaitForKey  SEP       #$30                 ; Wait for a Key Press
+WFK_1       LDAL      $00c000
+            BPL       WFK_1
+            STAL      $00c010
+            REP       #$30
+            RTS
+
+************************************************************
+*
+* Print out a TEXT String, at memory location Y
+* in Bank E1
+*
+PrintE1:
+		mx %00
+{
+	pool zpWork $e0-$100
+	zpWork pString.l
+	
+*  Setup pString as pointer to the string
+
+			plx
+			inx
+			stx <pString
+			phk
+			phk
+			pla
+			sta <pString+2
+			
+*  Font render bank			
+			
+			pea $e1e1
+			plb
+			plb
+	 
+			clc	
+
+.loop
+			lda [pString]
+			and #$00FF
+			beq .done
+
+			sbc #31
+			jsr dbgprint_char
+			
+			tya
+			adc #4
+			tay
+			inc <pString
+			bra .loop
+.done
+			pei <pString
+			rts
+}
+
+
+************************************************************
+*
+* Print out a 16 bit hex number, at memory location Y
+* in the current bank
+*
+PrintHEX:
+		mx %00
+{		
+		pha
+		xba
+		lsr
+		lsr
+		lsr
+		lsr
+		and #$000F
+		
+		tax
+		lda >chartable,x
+		and #$00FF
+		jsr dbgprint_char
+		
+		tya
+		adc #4
+		tay
+		lda 2,s
+		and #$000F
+		tax
+		lda >chartable,x
+		and #$00FF
+		jsr dbgprint_char
+		
+		tya
+		adc #4
+		tay
+		
+		lda 1,s
+		lsr
+		lsr
+		lsr
+		lsr
+		and #$000F
+		tax
+		lda >chartable,x
+		and #$00FF
+		jsr dbgprint_char
+		
+		tya
+		adc #4
+		tay
+		pla
+		and #$000F
+		tax
+		lda >chartable,x
+		and #$00FF
+		jsr dbgprint_char		
+
+		rts
+
+chartable dc.b 16,17,18,19,20,21,22,23,24,25,33,34,35,36,37,38
+
+}
+		
+************************************************************
+
diff --git a/samples/apple2gs/gsos/bin/ftile/Makefile b/samples/apple2gs/gsos/bin/ftile/Makefile
new file mode 100644
index 0000000..3997fb5
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/Makefile
@@ -0,0 +1,153 @@
+#--------------------------------------------------------
+# $File: Makefile,v $          
+#                     
+# $Date: 2019/10/20 $             
+# $Author: jandersen $           
+# $Revision: #1 $         
+#--------------------------------------------------------
+#
+# ftile GCC-Gnu Makefile
+#
+
+# compile under *nix, or Windows Subsystem for Linux
+
+SHELL	= /bin/sh
+MKDIR	= mkdir
+
+TARGET	= ftile
+
+PROJROOT	= .
+
+#SYSTEM      = /usr
+#SYSLIBDIR   = $(SYSTEM)/lib
+#SYSINCDIR   = $(SYSTEM)/include
+
+INCCMD		=	-I$(SYSINCDIR)
+INCCMD		+=	-I$(PROJROOT)/source
+INCCMD		+=	-I$(PROJROOT)/include
+
+OBJDIR		= $(PROJROOT)/obj
+DEPDIR		= $(PROJROOT)/dep
+LSTDIR		= $(PROJROOT)/lst
+
+#
+#  Special GnuMake Search Path Directive
+#
+VPATH		= $(PROJROOT)/source
+
+#
+#  Dedicated Search Paths for Specific Types
+#
+# Can be used to speed up compile by using this feature
+# for each filetype (reducing the amount of searching)
+#
+vpath %.o $(OBJDIR)
+vpath %.d $(DEPDIR)
+
+LIBCMD          +=-lm
+
+OBJS       	:= ftile.o
+OBJS		+= rawdata.o
+
+# change list of .o's into a list of .d's
+
+DEPS	   := $(OBJS:%.o=%.d)
+
+AS          = gcc
+CC          = gcc
+LD          = gcc
+RM          = /bin/rm -rfv
+
+CFLAGS      = -O2 -Wall -Werror -Wa,-al -fno-common
+CXXFLAGS    = -O2 -Wall -Werror -Wa,-al -fno-common
+ASFLAGS     = -c -xassembler-with-cpp -Wa,-al
+LDFLAGS     = -Wl,-Map,$(TARGET).map $(LIBCMD)
+
+# Clear Default Suffixes
+.SUFFIXES:
+# Set my Own Suffixes
+.SUFFIXES: .c .s .cc .d .o
+
+all: $(TARGET)
+
+$(TARGET): $(DEPS) $(OBJS) $(LIBS)
+	$(LD) -o $@ $(addprefix $(OBJDIR)/,$(OBJS)) $(LIBS) $(LDFLAGS)
+
+# Object Rules
+
+.s.o:
+	$(AS) $(ASFLAGS) $(TMPFLAGS) $(INCCMD) -o $(OBJDIR)/$@ $< > $(LSTDIR)/$*.lst
+
+.c.o:
+	$(CC) $(CFLAGS) $(TMPFLAGS) $(INCCMD) -c $< -o $(OBJDIR)/$*.o > $(LSTDIR)/$*.lst
+
+.cc.o:
+	$(CC) $(CXXFLAGS) $(TMPFLAGS) $(INCCMD) -c $< -o $(OBJDIR)/$*.o > $(LSTDIR)/$*.lst
+
+# Dependencie Rules
+#
+# for now just touch, to create the file if its not defined
+#
+.s.d:
+	touch $(DEPDIR)/$*.d
+
+.c.d:
+	set -e; $(CC) -M $(CFLAGS) $(INCCMD) $< \
+	| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $(DEPDIR)/$@; \
+	[ -s $(DEPDIR)/$@ ] || rm -f $(DEPDIR)/$@
+
+.cc.d:
+	set -e; $(CC) -M $(CXXFLAGS) $(INCCMD) $< \
+	| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $(DEPDIR)/$@; \
+	[ -s $(DEPDIR)/$@ ] || rm -f $(DEPDIR)/$@
+
+.PHONY: install
+install: $(TARGET)
+	cp $(TARGET).exe $(PROJROOT)/../bin
+
+.PHONY: clean
+clean:
+	$(RM) $(OBJDIR) *.o $(DEPDIR) *.map $(LSTDIR) $(TARGET) $(TARGET).exe
+
+
+########################################
+# 
+# HELPER TARGET RULES
+#
+########################################
+
+#
+# Target that forces all of the objects to be rebuilt if the makefile changes
+#
+
+$(OBJS) : Makefile
+$(DEPS) : Makefile
+#
+# Targets that create the output object directory if it doesn't already exist
+#
+
+Makefile : $(OBJDIR) $(DEPDIR) $(LSTDIR)
+
+$(OBJDIR) :
+	$(MKDIR) $(OBJDIR)
+
+#
+# Targets that create the output dependency directory if it doesn't already exist
+#
+
+$(DEPDIR) :
+	$(MKDIR) $(DEPDIR)
+
+#
+# Targets that create the output list directory if it doesn't already exist
+#
+  
+$(LSTDIR) :
+	$(MKDIR) $(LSTDIR)
+
+#
+# Generated Dependencie Files
+#
+-include $(wildcard $(DEPDIR)/*.d)
+
+
diff --git a/samples/apple2gs/gsos/bin/ftile/TESTFONT.gs b/samples/apple2gs/gsos/bin/ftile/TESTFONT.gs
new file mode 100644
index 0000000..b97f001
Binary files /dev/null and b/samples/apple2gs/gsos/bin/ftile/TESTFONT.gs differ
diff --git a/samples/apple2gs/gsos/bin/ftile/TESTFONT.txt b/samples/apple2gs/gsos/bin/ftile/TESTFONT.txt
new file mode 100644
index 0000000..f764ad2
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/TESTFONT.txt
@@ -0,0 +1,2256 @@
+    da tile0_0
+    da tile0_1
+    da tile0_2
+    da tile0_3
+    da tile0_4
+    da tile0_5
+    da tile0_6
+    da tile0_7
+    da tile0_8
+    da tile0_9
+    da tile0_10
+    da tile0_11
+    da tile0_12
+    da tile0_13
+    da tile0_14
+    da tile0_15
+    da tile0_16
+    da tile0_17
+    da tile0_18
+    da tile0_19
+    da tile0_20
+    da tile0_21
+    da tile0_22
+    da tile0_23
+    da tile0_24
+    da tile0_25
+    da tile0_26
+    da tile0_27
+    da tile0_28
+    da tile0_29
+    da tile0_30
+    da tile0_31
+    da tile0_32
+    da tile0_33
+    da tile0_34
+    da tile0_35
+    da tile0_36
+    da tile0_37
+    da tile0_38
+    da tile0_39
+    da tile0_40
+    da tile0_41
+    da tile0_42
+    da tile0_43
+    da tile0_44
+    da tile0_45
+    da tile0_46
+    da tile0_47
+    da tile0_48
+    da tile0_49
+    da tile0_50
+    da tile0_51
+    da tile0_52
+    da tile0_53
+    da tile0_54
+    da tile0_55
+    da tile0_56
+    da tile0_57
+    da tile0_58
+    da tile0_59
+    da tile0_60
+    da tile0_61
+    da tile0_62
+    da tile0_63
+    da tile0_64
+    da tile0_65
+    da tile0_66
+    da tile0_67
+    da tile0_68
+    da tile0_69
+    da tile0_70
+    da tile0_71
+    da tile0_72
+    da tile0_73
+    da tile0_74
+    da tile0_75
+    da tile0_76
+    da tile0_77
+    da tile0_78
+    da tile0_79
+    da tile0_80
+    da tile0_81
+    da tile0_82
+    da tile0_83
+    da tile0_84
+    da tile0_85
+    da tile0_86
+    da tile0_87
+    da tile0_88
+    da tile0_89
+    da tile0_90
+    da tile0_91
+    da tile0_92
+    da tile0_93
+    da tile0_94
+    da tile0_95
+tile0_0
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_1
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F00F
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $03C0,Y
+         RTL  ;108 cycles
+tile0_2
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         RTL  ;108 cycles
+tile0_3
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000F
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$00F0
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0322,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_4
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         STA $01E0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         LDA #$0F0F
+         STA $0140,Y
+         LDA #$00F0
+         STA $01E2,Y
+         STA $0322,Y
+         LDA #$0F00
+         STA $0280,Y
+         LDA #$000F
+         STA $0282,Y
+         LDA #$FF0F
+         STA $0320,Y
+         RTL  ;126 cycles
+tile0_5
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$0F00
+         STA $0140,Y
+         LDA #$00F0
+         STA $0142,Y
+         LDA #$FF00
+         STA $01E0,Y
+         LDA #$F00F
+         STA $0280,Y
+         RTL  ;120 cycles
+tile0_6
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00F0
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$FFF0
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$000F
+         STA $01E2,Y
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_7
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$000F
+         STA $01E0,Y
+         RTL  ;111 cycles
+tile0_8
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$F00F
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         RTL  ;111 cycles
+tile0_9
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F00F
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         RTL  ;111 cycles
+tile0_10
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F00F
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00F0
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         RTL  ;123 cycles
+tile0_11
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$00FF
+         STA $01E2,Y
+         RTL  ;114 cycles
+tile0_12
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$F00F
+         STA $03C0,Y
+         RTL  ;111 cycles
+tile0_13
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         RTL  ;111 cycles
+tile0_14
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $0280,Y
+         STA $0320,Y
+         RTL  ;108 cycles
+tile0_15
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$0F00
+         STA $0140,Y
+         LDA #$00F0
+         STA $0142,Y
+         LDA #$FF00
+         STA $01E0,Y
+         LDA #$F00F
+         STA $0280,Y
+         RTL  ;120 cycles
+tile0_16
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         RTL  ;114 cycles
+tile0_17
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0F00
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$00F0
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$FF00
+         STA $0140,Y
+         RTL  ;114 cycles
+tile0_18
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0282,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0280,Y
+         LDA #$0F00
+         STA $01E0,Y
+         LDA #$FFFF
+         STA $0320,Y
+         LDA #$F0FF
+         STA $0322,Y
+         RTL  ;123 cycles
+tile0_19
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$0F00
+         STA $01E0,Y
+         RTL  ;117 cycles
+tile0_20
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0140,Y
+         LDA #$FFFF
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0282,Y
+         RTL  ;120 cycles
+tile0_21
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$F0FF
+         STA $00A2,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_22
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0322,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$F00F
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_23
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         LDA #$F0FF
+         STA $00A2,Y
+         LDA #$00FF
+         STA $0142,Y
+         LDA #$0F00
+         STA $01E0,Y
+         LDA #$00F0
+         STA $01E2,Y
+         LDA #$FF00
+         STA $0280,Y
+         LDA #$F00F
+         STA $0320,Y
+         RTL  ;126 cycles
+tile0_24
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0282,Y
+         RTL  ;114 cycles
+tile0_25
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0280,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $01E0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$F00F
+         STA $0142,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         LDA #$FF00
+         STA $0320,Y
+         LDA #$00F0
+         STA $0322,Y
+         RTL  ;123 cycles
+tile0_26
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $01E0,Y
+         STA $0320,Y
+         RTL  ;108 cycles
+tile0_27
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$F00F
+         STA $03C0,Y
+         RTL  ;111 cycles
+tile0_28
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $0280,Y
+         RTL  ;111 cycles
+tile0_29
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $0282,Y
+         RTL  ;111 cycles
+tile0_30
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $0280,Y
+         RTL  ;111 cycles
+tile0_31
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         LDA #$00F0
+         STA $00A2,Y
+         STA $01E2,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0F00
+         STA $01E0,Y
+         LDA #$FF00
+         STA $0280,Y
+         STA $03C0,Y
+         RTL  ;120 cycles
+tile0_32
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $03C2,Y
+         LDA #$000F
+         STA $0140,Y
+         STA $0320,Y
+         LDA #$F000
+         STA $0142,Y
+         STA $0322,Y
+         LDA #$0FF0
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$FFFF
+         STA $01E2,Y
+         STA $0282,Y
+         RTL  ;123 cycles
+tile0_33
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0282,Y
+         RTL  ;120 cycles
+tile0_34
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_35
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0282,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_36
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_37
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $01E0,Y
+         STA $0320,Y
+         LDA #$00F0
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_38
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0142,Y
+         LDA #$00FF
+         STA $01E0,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$00F0
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_39
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$0FFF
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0282,Y
+         LDA #$F00F
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_40
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_41
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;108 cycles
+tile0_42
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$FF00
+         STA $03C0,Y
+         LDA #$00FF
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_43
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $0280,Y
+         LDA #$00F0
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_44
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$FFFF
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_45
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$F0FF
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$FFFF
+         STA $0280,Y
+         LDA #$0FFF
+         STA $0320,Y
+         RTL  ;120 cycles
+tile0_46
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F0FF
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$0FFF
+         STA $0280,Y
+         LDA #$00FF
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;120 cycles
+tile0_47
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_48
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $01E2,Y
+         RTL  ;114 cycles
+tile0_49
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_50
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $01E2,Y
+         LDA #$0FFF
+         STA $0320,Y
+         LDA #$F0FF
+         STA $03C2,Y
+         RTL  ;120 cycles
+tile0_51
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0282,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_52
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         LDA #$00FF
+         STA $0142,Y
+         LDA #$FF00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;114 cycles
+tile0_53
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$FF0F
+         STA $03C0,Y
+         RTL  ;114 cycles
+tile0_54
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0282,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         LDA #$FF00
+         STA $0320,Y
+         LDA #$00F0
+         STA $0322,Y
+         LDA #$0F00
+         STA $03C0,Y
+         RTL  ;120 cycles
+tile0_55
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$0FFF
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$FFFF
+         STA $0320,Y
+         LDA #$F0FF
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_56
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0322,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$FF00
+         STA $0280,Y
+         LDA #$00F0
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_57
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$FF00
+         STA $0142,Y
+         STA $0280,Y
+         LDA #$F00F
+         STA $01E0,Y
+         STA $01E2,Y
+         LDA #$0F00
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$00F0
+         STA $0322,Y
+         STA $03C2,Y
+         RTL  ;120 cycles
+tile0_58
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $01E2,Y
+         LDA #$0F00
+         STA $0280,Y
+         LDA #$00F0
+         STA $0282,Y
+         LDA #$FF00
+         STA $0320,Y
+         RTL  ;123 cycles
+tile0_59
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         RTL  ;114 cycles
+tile0_60
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $01E0,Y
+         LDA #$FF00
+         STA $0280,Y
+         LDA #$0F00
+         STA $0320,Y
+         LDA #$00F0
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_61
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$00F0
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0F00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         RTL  ;114 cycles
+tile0_62
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         LDA #$000F
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$0F0F
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$00FF
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_63
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$F00F
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;117 cycles
+tile0_64
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         RTL  ;111 cycles
+tile0_65
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         RTL  ;120 cycles
+tile0_66
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_67
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_68
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_69
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $00A2,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$00F0
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_70
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $00A2,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$00F0
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_71
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$0FFF
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         LDA #$F00F
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_72
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$F0FF
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_73
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;108 cycles
+tile0_74
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$FF00
+         STA $03C0,Y
+         LDA #$00FF
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_75
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $03C2,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$00F0
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_76
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$FFFF
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_77
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$F0FF
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E2,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$0FFF
+         STA $0280,Y
+         RTL  ;120 cycles
+tile0_78
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$F0FF
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$FFFF
+         STA $01E0,Y
+         LDA #$0FFF
+         STA $0280,Y
+         RTL  ;120 cycles
+tile0_79
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_80
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         RTL  ;114 cycles
+tile0_81
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_82
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         STA $01E0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$F00F
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$0FFF
+         STA $0280,Y
+         LDA #$F0FF
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_83
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;114 cycles
+tile0_84
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FFFF
+         STA $00A0,Y
+         LDA #$00FF
+         STA $00A2,Y
+         LDA #$FF00
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;114 cycles
+tile0_85
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$FF0F
+         STA $03C0,Y
+         RTL  ;114 cycles
+tile0_86
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$FF00
+         STA $0320,Y
+         LDA #$00F0
+         STA $0322,Y
+         LDA #$0F00
+         STA $03C0,Y
+         RTL  ;120 cycles
+tile0_87
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $03C2,Y
+         LDA #$F00F
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$0FFF
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$FFFF
+         STA $0320,Y
+         LDA #$F0FF
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_88
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00FF
+         STA $00A0,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$FF0F
+         STA $00A2,Y
+         LDA #$F00F
+         STA $0140,Y
+         STA $0280,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$FF00
+         STA $01E0,Y
+         LDA #$00F0
+         STA $01E2,Y
+         RTL  ;120 cycles
+tile0_89
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00F0
+         STA $00A0,Y
+         STA $01E2,Y
+         LDA #$F00F
+         STA $00A2,Y
+         LDA #$00FF
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$FF0F
+         STA $01E0,Y
+         LDA #$FF00
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;120 cycles
+tile0_90
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$FF0F
+         STA $00A0,Y
+         STA $03C0,Y
+         LDA #$F0FF
+         STA $00A2,Y
+         STA $03C2,Y
+         LDA #$00FF
+         STA $0142,Y
+         LDA #$0F00
+         STA $01E0,Y
+         LDA #$00F0
+         STA $01E2,Y
+         LDA #$FF00
+         STA $0280,Y
+         LDA #$F00F
+         STA $0320,Y
+         RTL  ;126 cycles
+tile0_91
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_92
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_93
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_94
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_95
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
diff --git a/samples/apple2gs/gsos/bin/ftile/null_terminator.gs b/samples/apple2gs/gsos/bin/ftile/null_terminator.gs
new file mode 100644
index 0000000..f773f7f
Binary files /dev/null and b/samples/apple2gs/gsos/bin/ftile/null_terminator.gs differ
diff --git a/samples/apple2gs/gsos/bin/ftile/null_terminator.txt b/samples/apple2gs/gsos/bin/ftile/null_terminator.txt
new file mode 100644
index 0000000..d36b09e
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/null_terminator.txt
@@ -0,0 +1,2278 @@
+    da tile0_0
+    da tile0_1
+    da tile0_2
+    da tile0_3
+    da tile0_4
+    da tile0_5
+    da tile0_6
+    da tile0_7
+    da tile0_8
+    da tile0_9
+    da tile0_10
+    da tile0_11
+    da tile0_12
+    da tile0_13
+    da tile0_14
+    da tile0_15
+    da tile0_16
+    da tile0_17
+    da tile0_18
+    da tile0_19
+    da tile0_20
+    da tile0_21
+    da tile0_22
+    da tile0_23
+    da tile0_24
+    da tile0_25
+    da tile0_26
+    da tile0_27
+    da tile0_28
+    da tile0_29
+    da tile0_30
+    da tile0_31
+    da tile0_32
+    da tile0_33
+    da tile0_34
+    da tile0_35
+    da tile0_36
+    da tile0_37
+    da tile0_38
+    da tile0_39
+    da tile0_40
+    da tile0_41
+    da tile0_42
+    da tile0_43
+    da tile0_44
+    da tile0_45
+    da tile0_46
+    da tile0_47
+    da tile0_48
+    da tile0_49
+    da tile0_50
+    da tile0_51
+    da tile0_52
+    da tile0_53
+    da tile0_54
+    da tile0_55
+    da tile0_56
+    da tile0_57
+    da tile0_58
+    da tile0_59
+    da tile0_60
+    da tile0_61
+    da tile0_62
+    da tile0_63
+    da tile0_64
+    da tile0_65
+    da tile0_66
+    da tile0_67
+    da tile0_68
+    da tile0_69
+    da tile0_70
+    da tile0_71
+    da tile0_72
+    da tile0_73
+    da tile0_74
+    da tile0_75
+    da tile0_76
+    da tile0_77
+    da tile0_78
+    da tile0_79
+    da tile0_80
+    da tile0_81
+    da tile0_82
+    da tile0_83
+    da tile0_84
+    da tile0_85
+    da tile0_86
+    da tile0_87
+    da tile0_88
+    da tile0_89
+    da tile0_90
+    da tile0_91
+    da tile0_92
+    da tile0_93
+    da tile0_94
+    da tile0_95
+tile0_0
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
+tile0_1
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;108 cycles
+tile0_2
+         LDA #$000E
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;108 cycles
+tile0_3
+         LDA #$000E
+         STA $0000,Y
+         STA $0002,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E0EE
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_4
+         LDA #$0E00
+         STA $0000,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $0142,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E0EE
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$0EE0
+         STA $0140,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         LDA #$E000
+         STA $0282,Y
+         RTL  ;126 cycles
+tile0_5
+         LDA #$000E
+         STA $0000,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0280,Y
+         LDA #$E0E0
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $03C0,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_6
+         LDA #$EE00
+         STA $0000,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$0E0E
+         STA $01E0,Y
+         LDA #$0EE0
+         STA $0320,Y
+         LDA #$E00E
+         STA $03C0,Y
+         RTL  ;126 cycles
+tile0_7
+         LDA #$E000
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;108 cycles
+tile0_8
+         LDA #$0000
+         STA $0000,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         RTL  ;114 cycles
+tile0_9
+         LDA #$E000
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         RTL  ;114 cycles
+tile0_10
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$0E0E
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$000E
+         STA $0142,Y
+         STA $0282,Y
+         LDA #$EE00
+         STA $01E0,Y
+         LDA #$00E0
+         STA $01E2,Y
+         RTL  ;120 cycles
+tile0_11
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTL  ;114 cycles
+tile0_12
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $0320,Y
+         LDA #$00EE
+         STA $03C0,Y
+         RTL  ;111 cycles
+tile0_13
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTL  ;111 cycles
+tile0_14
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $0320,Y
+         STA $03C0,Y
+         RTL  ;108 cycles
+tile0_15
+         LDA #$0000
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0280,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $03C0,Y
+         LDA #$0E00
+         STA $01E0,Y
+         RTL  ;117 cycles
+tile0_16
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_17
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;108 cycles
+tile0_18
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$00E0
+         STA $0280,Y
+         STA $0320,Y
+         RTL  ;117 cycles
+tile0_19
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $01E0,Y
+         RTL  ;117 cycles
+tile0_20
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_21
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;117 cycles
+tile0_22
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;117 cycles
+tile0_23
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_24
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_25
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_26
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         RTL  ;108 cycles
+tile0_27
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0E00
+         STA $03C0,Y
+         RTL  ;111 cycles
+tile0_28
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         LDA #$EE00
+         STA $0140,Y
+         STA $0280,Y
+         RTL  ;111 cycles
+tile0_29
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE0E
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00EE
+         STA $0142,Y
+         STA $0282,Y
+         RTL  ;111 cycles
+tile0_30
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E00E
+         STA $00A0,Y
+         STA $01E2,Y
+         STA $0320,Y
+         LDA #$0E00
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$00E0
+         STA $0142,Y
+         STA $0282,Y
+         RTL  ;114 cycles
+tile0_31
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_32
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         LDA #$EEE0
+         STA $0140,Y
+         STA $0280,Y
+         LDA #$E0E0
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$00EE
+         STA $03C0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;126 cycles
+tile0_33
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_34
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_35
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_36
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_37
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_38
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_39
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEE0
+         STA $01E0,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_40
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_41
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_42
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0EE0
+         STA $0320,Y
+         RTL  ;117 cycles
+tile0_43
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_44
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_45
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E00E
+         STA $00A2,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_46
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_47
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_48
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_49
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$E0E0
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_50
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_51
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;117 cycles
+tile0_52
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_53
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $03C0,Y
+         LDA #$00EE
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_54
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         LDA #$0E00
+         STA $03C0,Y
+         LDA #$0000
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_55
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E0E0
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$00EE
+         STA $0320,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_56
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_57
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_58
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$E000
+         STA $0280,Y
+         RTL  ;123 cycles
+tile0_59
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_60
+         LDA #$00E0
+         STA $0000,Y
+         STA $0282,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0140,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         RTL  ;117 cycles
+tile0_61
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;111 cycles
+tile0_62
+         LDA #$0E00
+         STA $0000,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $00A0,Y
+         LDA #$00E0
+         STA $00A2,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         RTL  ;117 cycles
+tile0_63
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTL  ;111 cycles
+tile0_64
+         LDA #$E00E
+         STA $0000,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EE00
+         STA $00A0,Y
+         LDA #$0E00
+         STA $0140,Y
+         LDA #$00E0
+         STA $0142,Y
+         RTL  ;117 cycles
+tile0_65
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_66
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_67
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_68
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_69
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00EE
+         STA $01E2,Y
+         RTL  ;117 cycles
+tile0_70
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_71
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEE0
+         STA $01E0,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;120 cycles
+tile0_72
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $01E2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_73
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_74
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$0EE0
+         STA $0320,Y
+         RTL  ;117 cycles
+tile0_75
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0322,Y
+         LDA #$EEEE
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_76
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$EEEE
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $03C2,Y
+         RTL  ;114 cycles
+tile0_77
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E00E
+         STA $00A2,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0142,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_78
+         LDA #$00E0
+         STA $0000,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00EE
+         STA $00A0,Y
+         LDA #$E0E0
+         STA $0140,Y
+         STA $0282,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_79
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_80
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         LDA #$0000
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_81
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         LDA #$E0E0
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_82
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;120 cycles
+tile0_83
+         LDA #$EEEE
+         STA $0000,Y
+         STA $01E0,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$00E0
+         STA $00A0,Y
+         STA $0140,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0282,Y
+         STA $0322,Y
+         RTL  ;117 cycles
+tile0_84
+         LDA #$EEEE
+         STA $0000,Y
+         LDA #$E0EE
+         STA $0002,Y
+         LDA #$0E00
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;114 cycles
+tile0_85
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$EE0E
+         STA $03C0,Y
+         LDA #$00EE
+         STA $03C2,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_86
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$000E
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         LDA #$0E00
+         STA $03C0,Y
+         LDA #$0000
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_87
+         LDA #$00E0
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $03C2,Y
+         LDA #$0EE0
+         STA $01E0,Y
+         LDA #$E0E0
+         STA $0280,Y
+         STA $0282,Y
+         LDA #$00EE
+         STA $0320,Y
+         LDA #$E00E
+         STA $0322,Y
+         LDA #$0000
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;123 cycles
+tile0_88
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $03C0,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $03C2,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0320,Y
+         STA $0322,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_89
+         LDA #$00E0
+         STA $0000,Y
+         STA $0142,Y
+         LDA #$E000
+         STA $0002,Y
+         STA $0140,Y
+         LDA #$000E
+         STA $00A0,Y
+         STA $00A2,Y
+         LDA #$0E00
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;117 cycles
+tile0_90
+         LDA #$EEEE
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$E0EE
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$0000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $00A2,Y
+         STA $0320,Y
+         LDA #$00E0
+         STA $0142,Y
+         LDA #$0E00
+         STA $01E0,Y
+         LDA #$E000
+         STA $0280,Y
+         RTL  ;123 cycles
+tile0_91
+         LDA #$0E00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$00E0
+         STA $0002,Y
+         STA $03C2,Y
+         LDA #$E000
+         STA $00A0,Y
+         STA $0140,Y
+         STA $0280,Y
+         STA $0320,Y
+         LDA #$0000
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$000E
+         STA $01E0,Y
+         RTL  ;117 cycles
+tile0_92
+         LDA #$0E00
+         STA $0000,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $01E2,Y
+         STA $0282,Y
+         STA $0322,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;108 cycles
+tile0_93
+         LDA #$EE00
+         STA $0000,Y
+         STA $03C0,Y
+         LDA #$0000
+         STA $0002,Y
+         STA $00A0,Y
+         STA $0140,Y
+         STA $01E0,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$00E0
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0282,Y
+         STA $0322,Y
+         LDA #$000E
+         STA $01E2,Y
+         RTL  ;114 cycles
+tile0_94
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0142,Y
+         STA $0280,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         LDA #$E000
+         STA $0140,Y
+         LDA #$0E0E
+         STA $01E0,Y
+         LDA #$000E
+         STA $01E2,Y
+         LDA #$00E0
+         STA $0282,Y
+         RTL  ;117 cycles
+tile0_95
+         LDA #$0000
+         STA $0000,Y
+         STA $0002,Y
+         STA $00A0,Y
+         STA $00A2,Y
+         STA $0140,Y
+         STA $0142,Y
+         STA $01E0,Y
+         STA $01E2,Y
+         STA $0280,Y
+         STA $0282,Y
+         STA $0320,Y
+         STA $0322,Y
+         STA $03C0,Y
+         STA $03C2,Y
+         STA $0460,Y
+         STA $0462,Y
+         RTL  ;105 cycles
diff --git a/samples/apple2gs/gsos/bin/ftile/source/bctypes.h b/samples/apple2gs/gsos/bin/ftile/source/bctypes.h
new file mode 100644
index 0000000..537e681
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/source/bctypes.h
@@ -0,0 +1,45 @@
+/*
+	bctypes.h
+
+	Because Standard Types
+*/
+
+#ifndef _bctypes_h
+#define _bctypes_h
+
+typedef	signed char			i8;
+typedef unsigned char		u8;
+typedef signed short		i16;
+typedef unsigned short		u16;
+typedef signed long			i32;
+typedef unsigned long		u32;
+
+#if !_MSVC
+typedef signed long long	i64;
+typedef unsigned long long	u64;
+#endif
+
+typedef	i32					bool;
+
+typedef float				f32;
+typedef float				r32;
+typedef double				f64;
+typedef double				r64;
+
+
+#define false (0)
+#define true (!false)
+
+#define null (0)
+
+// Odd Types
+typedef union {
+  u64        ul64[2];
+  u32        ui32[4];
+} QWdata;
+
+
+#endif // _bctypes_h
+
+// EOF - bctypes.h
+
diff --git a/samples/apple2gs/gsos/bin/ftile/source/ftile.c b/samples/apple2gs/gsos/bin/ftile/source/ftile.c
new file mode 100644
index 0000000..80bdea9
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/source/ftile.c
@@ -0,0 +1,187 @@
+/*
+#--------------------------------------------------------
+# $File: ftile.c,v $          
+#--------------------------------------------------------
+*/
+
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdarg.h>
+
+#include "bctypes.h"
+#include "ftile.h"
+#include "rawdata.h"
+
+u16 GetBest16(unsigned char* pFrame, int width, int height)
+{
+	return 0;
+}
+
+RAWDATA* gResult = NULL;
+
+void AddString(RAWDATA* pRaw, char* pString)
+{
+	size_t len = strlen(pString);
+
+	size_t newlen = len+pRaw->size;
+
+	pRaw->data = (unsigned char*) realloc(pRaw->data, newlen);
+
+	memcpy(pRaw->data + pRaw->size, pString, len);
+
+	pRaw->size = newlen;
+}
+
+int AddLine(char*pLabel,char*pInst,char*pExp,int val,int clocks)
+{
+	if (gResult)
+	{
+		char temp[256];
+		char pArg[256];
+
+		memset(pArg,0,256);
+		sprintf(pArg,pExp,val);
+
+		sprintf(temp, "%8s %3s %s\n", pLabel,pInst,pArg);
+
+		AddString(gResult, temp);
+	}
+
+	return clocks;
+}
+
+void CompileTile(RAWDATA *result, u8* pTile)
+{
+static int offsets[16] =
+{
+	(160 * 0) + 0, (160 * 0) + 2,
+	(160 * 1) + 0, (160 * 1) + 2,
+	(160 * 2) + 0, (160 * 2) + 2,
+	(160 * 3) + 0, (160 * 3) + 2,
+	(160 * 4) + 0, (160 * 4) + 2,
+	(160 * 5) + 0, (160 * 5) + 2,
+	(160 * 6) + 0, (160 * 6) + 2,
+	(160 * 7) + 0, (160 * 7) + 2
+};
+	int clocks = 0;
+	u16 *pData = (u16*) pTile;
+
+	bool slots[16];
+
+	memset(slots, 0, sizeof(bool) * 16);
+
+	bool done = false;
+
+	while (!done)
+	{
+		u16 pixel = 0;
+		done = true;
+		 
+		// Load a cached Pixel
+		for (int idx = 0; idx < 16; ++idx)
+		{
+			if (slots[idx])
+				continue;
+
+			done = false;
+			pixel = pData[idx];
+			clocks += AddLine("","LDA","#$%04X",pixel,3);
+			break;
+		}
+
+		for (int outIdx = 0; outIdx < 16; ++outIdx)
+		{
+			if (slots[outIdx])
+				continue;
+
+			if (pixel == pData[outIdx])
+			{
+				clocks += AddLine("","STA","$%04X,Y",offsets[outIdx],6);
+				slots[outIdx] = true;
+			}
+		}
+	}
+
+	clocks += AddLine("","RTL"," ;%d cycles",clocks+6,6);
+}
+
+RAWDATA* CompileTiles(RAWDATA* pTilesData, int bank)
+{
+	RAWDATA* result = (RAWDATA*)malloc(sizeof(RAWDATA));
+	memset(result, 0, sizeof(RAWDATA));
+
+	gResult = result;
+
+	int numTiles = pTilesData->size / 32; // (32 bytes per tile)
+
+	char temp_label[256];
+
+	for (int idx = 0; idx < numTiles; ++idx)
+	{
+		sprintf(temp_label,"    da tile%d_%d\n", bank, idx);
+		AddString(result, temp_label);
+	}
+
+	for (int tileNo = 0; tileNo < numTiles; ++tileNo)
+	{
+		sprintf(temp_label,"tile%d_%d\n", bank, tileNo);
+		AddString(result, temp_label);
+		CompileTile(result, &pTilesData->data[ tileNo * 32 ]);
+	}
+
+	return result;
+}
+
+static void _usage()
+{
+	printf("ftile v%s\n\n", VERSION);
+	printf("Usage:  ftile <input_raw8x8_tile_file>\n"
+		   "Written by Jason Andersen\n"
+		   "Copyright (c) 2019 Jason Andersen.\n"
+		   "Unauthorized use prohibited\n");
+
+		   exit(1);
+
+} // usage	
+
+
+//
+// Parse command line options
+//
+int main(int argc, char **argv)
+{
+	// Check Arguments
+	while (--argc > 0 && (*++argv)[0] == '-')
+	{
+		*argv+=1;
+		 
+		if (strcmp("v", *argv) == 0)
+		{
+			printf("ftile v%s\n", VERSION);
+			exit(0);
+		}
+		
+		*argv+= strlen(*argv); // skip rest of string
+	}
+
+	if (argc != 1) _usage();
+
+	RAWDATA* pData = loadRaw(argv[0]);
+	RAWDATA* pSource = CompileTiles(pData,0);
+
+	char outname[256];
+	strcpy(outname, argv[0]);
+	int len = strlen(outname);
+	strcpy(outname+(len-2), "txt");
+	saveRaw(pSource, outname);
+	printf("\nftile - Processing complete.\n");
+
+	exit(0);
+
+} // main	
+
+
+// eof - xrick2png.c
+
diff --git a/samples/apple2gs/gsos/bin/ftile/source/ftile.h b/samples/apple2gs/gsos/bin/ftile/source/ftile.h
new file mode 100644
index 0000000..dd44e94
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/source/ftile.h
@@ -0,0 +1,19 @@
+/*
+#--------------------------------------------------------
+# $File: ftile.h,v $          
+# $Author: jandersen $           
+# $Revision: #1 $         
+#--------------------------------------------------------
+	
+*/
+
+#ifndef _ftile_h
+#define _ftile_h
+
+#define VERSION "1.00"
+
+#endif // _ftile_h
+
+// EOF - ftile.h
+
+
diff --git a/samples/apple2gs/gsos/bin/ftile/source/rawdata.c b/samples/apple2gs/gsos/bin/ftile/source/rawdata.c
new file mode 100644
index 0000000..acb1dfb
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/source/rawdata.c
@@ -0,0 +1,53 @@
+
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdarg.h>
+
+#include "rawdata.h"
+
+
+RAWDATA* loadRaw(const char* path)
+{
+	FILE* rawFile = fopen( path, "rb" );
+
+	if (rawFile)
+	{
+		RAWDATA* pData = (RAWDATA*)malloc(sizeof(RAWDATA));
+
+		fseek(rawFile, 0, SEEK_END);
+		pData->size = ftell(rawFile);
+
+		fseek(rawFile, 0, SEEK_SET);
+
+		pData->data = (unsigned char*)malloc(pData->size);
+
+		size_t read_size = fread(pData->data, 1, pData->size, rawFile);
+
+		if (read_size != pData->size)
+		{
+			printf("WARNING: read %ld of %ld bytes\n", read_size, pData->size);
+		}
+
+		fclose(rawFile);
+
+		return pData;
+	}
+
+	return NULL;
+}
+
+void saveRaw(RAWDATA* pData, const char* path)
+{
+	FILE* rawFile = fopen( path, "wb" );
+
+	if (rawFile)
+	{
+		fwrite(pData->data, 1, pData->size, rawFile);
+		fclose(rawFile);
+	}
+}
+
+// rawdata.c
+
diff --git a/samples/apple2gs/gsos/bin/ftile/source/rawdata.h b/samples/apple2gs/gsos/bin/ftile/source/rawdata.h
new file mode 100644
index 0000000..49b48d9
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/ftile/source/rawdata.h
@@ -0,0 +1,16 @@
+
+#ifndef _rawdata_h_
+#define _rawdata_h_
+
+#include "bctypes.h"
+
+typedef struct {
+	unsigned char* data; // pointer to data
+	size_t size;		 // size in bytes
+} RAWDATA;
+
+
+RAWDATA* loadRaw(const char* path);
+void saveRaw(RAWDATA* pData, const char* path);
+
+#endif //_rawdata_h_
diff --git a/samples/apple2gs/gsos/bin/png2c1/Program.cs b/samples/apple2gs/gsos/bin/png2c1/Program.cs
new file mode 100644
index 0000000..15efeeb
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/png2c1/Program.cs
@@ -0,0 +1,249 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Imaging;
+using System.IO;
+
+namespace png2c1
+{
+    class Program
+    {
+        public class spPalette
+        {
+            public List<Color> colors = new List<Color>();
+        }
+
+        public class spPixels
+        {
+            public int m_width;
+            public int m_height;
+
+            public List<byte> m_pixels = new List<byte>();
+
+            public spPixels(int width, int height, List<byte> pixels)
+            {
+                m_width  = width;
+                m_height = height;
+                m_pixels = pixels;
+            }
+        }
+
+
+        static void Main(string[] args)
+        {
+            List<spPalette> pals = new List<spPalette>();
+            List<spPixels>  pics = new List<spPixels>();
+
+            Console.WriteLine("png2c1");
+            Console.WriteLine("{0}", args.Length);
+
+            byte[] scbs = new byte[200];  // 200 scanlines
+
+            byte scb_index = 0;
+
+            foreach(string arg in args)
+            {
+                String pngPath = arg;
+                String palPath = Path.ChangeExtension(pngPath, ".pal");
+                //--------------------------------------------------------------
+                // Read in the palette file (thanks Pro Motion) 
+                Console.WriteLine($"Loading {palPath}");
+
+                spPalette pal = new spPalette();
+
+                using (FileStream palStream = new FileStream(palPath, FileMode.Open, FileAccess.Read))
+                {
+                    for(int idx = 0; idx < 16; ++idx)
+                    {
+                        int r = palStream.ReadByte();
+                        int g = palStream.ReadByte();
+                        int b = palStream.ReadByte();
+
+                        pal.colors.Add(Color.FromArgb(255, r, g, b));
+                    }
+                }
+
+                // Put it in the list
+                pals.Add(pal);
+
+                //--------------------------------------------------------------
+                // Read in the image file 
+                Console.WriteLine($"Loading {pngPath}");
+
+                using (var image = new Bitmap(System.Drawing.Image.FromFile(pngPath)))
+                {
+                    //Bitmap image = new Bitmap(pngStream);
+                    Console.WriteLine("{0} width={1}, height={2}",pngPath, image.Width, image.Height);
+
+                    List<byte> pixels = new List<byte>();
+
+                    for (int y = 0; y < image.Height; ++y)
+                    {
+                        Color p = image.GetPixel(0,y);
+
+                        if (255 == p.A)
+                        {
+                            scbs[ y ] = scb_index;
+                        }
+
+
+                        for (int x = 0; x < image.Width; x+=2)
+                        {
+                            Color p0 = image.GetPixel(x,y);
+                            Color p1 = image.GetPixel(x+1,y);
+
+                            int idx0 = GetIndex(ref pal.colors, p0);
+                            int idx1 = GetIndex(ref pal.colors, p1);
+
+                            byte pb = (byte)((idx0<<4) | (idx1));
+
+                            pixels.Add( pb );
+                        }
+                    }
+
+                    spPixels pic = new spPixels(image.Width, image.Height, pixels);
+                    pics.Add(pic);
+                }
+
+                scb_index++;
+
+            }
+
+            //foreach (byte scb in scbs)
+            //{
+            //   Console.WriteLine("{0:X2}", scb);
+            //}
+
+            String outPath = Path.ChangeExtension(args[0], ".c1");
+
+            Console.WriteLine("Saving {0}", outPath);
+
+            using (BinaryWriter b = new BinaryWriter(
+                File.Open(outPath, FileMode.Create)))
+            {
+                for (int y = 0; y < scbs.Length; ++y)
+                {
+                    int imageIdx = scbs[ y ];
+                    spPixels pix = pics[ imageIdx ];
+
+                    int pixIndex = 160 * y;
+
+                    // Write out the scanline of pix
+                    for (int idx = 0; idx < 160; ++idx)
+                    {
+                        b.Write((byte)pix.m_pixels[ pixIndex + idx ]);
+                    }
+                }
+
+                // Save out the scbs
+                b.Write(scbs);
+
+                // Pad out the page
+                for (int idx = 0; idx < 56; ++idx)
+                {
+                    b.Write((byte)0x00);
+                }
+
+                // Save out the palettes
+                for (int palIdx = 0; palIdx < 16; ++palIdx)
+                {
+                    if (palIdx < pals.Count)
+                    {
+                        spPalette pal = pals[ palIdx ];
+
+                        for (int idx = 0; idx < 16; ++idx)
+                        {
+                            UInt16 rgb = ToGSColor(pal.colors[idx]);
+                            b.Write(rgb);
+                        }
+                    }
+                    else
+                    {
+                        for (int idx = 0; idx < 16; ++idx)
+                        {
+                            b.Write((UInt16)0);
+                        }
+                    }
+                }
+            }
+
+                
+        }
+
+        //
+        // Get a IIgs color
+        //
+        static UInt16 ToGSColor( Color pixel )
+        {
+            int red   = pixel.R;
+            int green = pixel.G;
+            int blue  = pixel.B;
+
+            // we want to round up if it's needed
+            red+=8;
+            green+=8;
+            blue+=8;
+            if (red   > 255) red   = 255;
+            if (green > 255) green = 255;
+            if (blue  > 255) blue  = 255;
+
+            red   >>= 4;
+            green >>= 4;
+            blue  >>= 4;
+
+            int color = (red   << 8) |
+                        (green << 4) |
+                        (blue);
+
+            return (UInt16)color;
+        }
+
+        //
+        // Get the Closest Matching Palette Index
+        //
+        static int GetIndex(ref List<Color> pal, Color pixel)
+        {
+            byte result_index = 0;
+
+            if (pal.Count > 0)
+            {
+                List<float> dist = new List<float>();
+
+                for (int idx = 0; idx < pal.Count; ++idx)
+                {
+                    float delta = ColorDelta(pal[idx], pixel);
+                    dist.Add(delta);
+
+                    // Make sure the result_index is the one
+                    // with the least amount of error
+                    if (dist[idx] < dist[result_index])
+                    {
+                        result_index = (byte)idx;
+                    }
+                }
+            }
+
+            return result_index;
+        }
+
+        static float ColorDelta(Color c0, Color c1)
+        {
+            //  Y=0.2126R+0.7152G+0.0722B
+            float r = (c0.R-c1.R);
+            r = r * r;
+            r *= 0.2126f;
+
+            float g = (c0.G-c1.G);
+            g = g * g;
+            g *= 0.7152f;
+
+            float b = (c0.B-c1.B);
+            b = b * b;
+            b *= 0.0722f;
+
+            return r + g + b;
+        }
+
+    }
+}
diff --git a/samples/apple2gs/gsos/bin/png2c1/background.pal b/samples/apple2gs/gsos/bin/png2c1/background.pal
new file mode 100644
index 0000000..10ed9f3
Binary files /dev/null and b/samples/apple2gs/gsos/bin/png2c1/background.pal differ
diff --git a/samples/apple2gs/gsos/bin/png2c1/background.png b/samples/apple2gs/gsos/bin/png2c1/background.png
new file mode 100644
index 0000000..215eb75
Binary files /dev/null and b/samples/apple2gs/gsos/bin/png2c1/background.png differ
diff --git a/samples/apple2gs/gsos/bin/png2c1/png2c1.csproj b/samples/apple2gs/gsos/bin/png2c1/png2c1.csproj
new file mode 100644
index 0000000..2f1df2a
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/png2c1/png2c1.csproj
@@ -0,0 +1,12 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp2.1</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="System.Drawing.Common" Version="4.5.1" />
+  </ItemGroup>
+
+</Project>
diff --git a/samples/apple2gs/gsos/bin/png2tiles/Program.cs b/samples/apple2gs/gsos/bin/png2tiles/Program.cs
new file mode 100644
index 0000000..bd95406
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/png2tiles/Program.cs
@@ -0,0 +1,202 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Imaging;
+using System.IO;
+
+namespace png2tiles
+{
+    class Program
+    {
+        public class spPalette
+        {
+            public List<Color> colors = new List<Color>();
+        }
+
+        public class spPixels
+        {
+            public int m_width;
+            public int m_height;
+
+            public List<byte> m_pixels = new List<byte>();
+
+            public spPixels(int width, int height, List<byte> pixels)
+            {
+                m_width  = width;
+                m_height = height;
+                m_pixels = pixels;
+            }
+        }
+
+
+        static void Main(string[] args)
+        {
+            List<spPalette> pals = new List<spPalette>();
+            List<spPixels>  pics = new List<spPixels>();
+
+            Console.WriteLine("png2tiles");
+            Console.WriteLine("{0}", args.Length);
+
+            foreach(string arg in args)
+            {
+                String pngPath = arg;
+                String palPath = Path.ChangeExtension(pngPath, ".pal");
+                //--------------------------------------------------------------
+                // Read in the palette file (thanks Pro Motion) 
+                Console.WriteLine($"Loading {palPath}");
+
+                spPalette pal = new spPalette();
+
+                using (FileStream palStream = new FileStream(palPath, FileMode.Open, FileAccess.Read))
+                {
+                    for(int idx = 0; idx < 16; ++idx)
+                    {
+                        int r = palStream.ReadByte();
+                        int g = palStream.ReadByte();
+                        int b = palStream.ReadByte();
+
+                        pal.colors.Add(Color.FromArgb(255, r, g, b));
+                    }
+                }
+
+                // Put it in the list
+                pals.Add(pal);
+
+                //--------------------------------------------------------------
+                // Read in the image file 
+                Console.WriteLine($"Loading {pngPath}");
+
+                using (var image = new Bitmap(System.Drawing.Image.FromFile(pngPath)))
+                {
+                    //Bitmap image = new Bitmap(pngStream);
+                    Console.WriteLine("{0} width={1}, height={2}",pngPath, image.Width, image.Height);
+
+                    List<byte> pixels = new List<byte>();
+
+                    for (int y = 0; y < image.Height; ++y)
+                    {
+                        for (int x = 0; x < image.Width; x+=2)
+                        {
+                            Color p0 = image.GetPixel(x,y);
+                            Color p1 = image.GetPixel(x+1,y);
+
+                            int idx0 = GetIndex(ref pal.colors, p0);
+                            int idx1 = GetIndex(ref pal.colors, p1);
+
+                            byte pb = (byte)((idx0<<4) | (idx1));
+
+                            pixels.Add( pb );
+                        }
+                    }
+
+                    spPixels pic = new spPixels(image.Width, image.Height, pixels);
+                    pics.Add(pic);
+                }
+            }
+
+            String outPath = Path.ChangeExtension(args[0], ".gs");
+
+            Console.WriteLine("Saving {0}", outPath);
+
+            using (BinaryWriter b = new BinaryWriter(
+                File.Open(outPath, FileMode.Create)))
+            {
+                spPixels pix = pics[ 0 ];
+
+                for (int y = 0; y < pix.m_height; y+=8)
+                {
+                    for (int x = 0; x<pix.m_width; x+=8)
+                    {
+                        int offset = y * (pix.m_width>>1) + (x >> 1);
+
+                        for (int idy = 0; idy < 8; ++idy)
+                        {
+                            int boffset = offset + (idy * (pix.m_width>>1));
+
+                            for (int idx = 0; idx < 4; ++idx)
+                            {
+                                b.Write((byte)pix.m_pixels[ boffset + idx ]);
+                            }
+                        }
+                    }
+                }
+            }
+        }
+
+        //
+        // Get a IIgs color
+        //
+        static UInt16 ToGSColor( Color pixel )
+        {
+            int red   = pixel.R;
+            int green = pixel.G;
+            int blue  = pixel.B;
+
+            // we want to round up if it's needed
+            red+=8;
+            green+=8;
+            blue+=8;
+            if (red   > 255) red   = 255;
+            if (green > 255) green = 255;
+            if (blue  > 255) blue  = 255;
+
+            red   >>= 4;
+            green >>= 4;
+            blue  >>= 4;
+
+            int color = (red   << 8) |
+                        (green << 4) |
+                        (blue);
+
+            return (UInt16)color;
+        }
+
+        //
+        // Get the Closest Matching Palette Index
+        //
+        static int GetIndex(ref List<Color> pal, Color pixel)
+        {
+            byte result_index = 0;
+
+            if (pal.Count > 0)
+            {
+                List<float> dist = new List<float>();
+
+                for (int idx = 0; idx < pal.Count; ++idx)
+                {
+                    float delta = ColorDelta(pal[idx], pixel);
+                    dist.Add(delta);
+
+                    // Make sure the result_index is the one
+                    // with the least amount of error
+                    if (dist[idx] < dist[result_index])
+                    {
+                        result_index = (byte)idx;
+                    }
+                }
+            }
+
+            return result_index;
+        }
+
+        static float ColorDelta(Color c0, Color c1)
+        {
+            //  Y=0.2126R+0.7152G+0.0722B
+            float r = (c0.R-c1.R);
+            r = r * r;
+            r *= 0.2126f;
+
+            float g = (c0.G-c1.G);
+            g = g * g;
+            g *= 0.7152f;
+
+            float b = (c0.B-c1.B);
+            b = b * b;
+            b *= 0.0722f;
+
+            return r + g + b;
+        }
+
+    }
+}
diff --git a/samples/apple2gs/gsos/bin/png2tiles/null_terminator.gs b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.gs
new file mode 100644
index 0000000..f773f7f
Binary files /dev/null and b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.gs differ
diff --git a/samples/apple2gs/gsos/bin/png2tiles/null_terminator.pal b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.pal
new file mode 100644
index 0000000..c28d73e
Binary files /dev/null and b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.pal differ
diff --git a/samples/apple2gs/gsos/bin/png2tiles/null_terminator.png b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.png
new file mode 100644
index 0000000..bb6e3be
Binary files /dev/null and b/samples/apple2gs/gsos/bin/png2tiles/null_terminator.png differ
diff --git a/samples/apple2gs/gsos/bin/png2tiles/png2tiles.csproj b/samples/apple2gs/gsos/bin/png2tiles/png2tiles.csproj
new file mode 100644
index 0000000..2f1df2a
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/png2tiles/png2tiles.csproj
@@ -0,0 +1,12 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp2.1</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="System.Drawing.Common" Version="4.5.1" />
+  </ItemGroup>
+
+</Project>
diff --git a/samples/apple2gs/gsos/bin/png2tiles/run.bat b/samples/apple2gs/gsos/bin/png2tiles/run.bat
new file mode 100644
index 0000000..2248db4
--- /dev/null
+++ b/samples/apple2gs/gsos/bin/png2tiles/run.bat
@@ -0,0 +1 @@
+dotnet run null_terminator.png
diff --git a/samples/apple2gs/gsos/data/background.c1 b/samples/apple2gs/gsos/data/background.c1
new file mode 100644
index 0000000..21a116a
Binary files /dev/null and b/samples/apple2gs/gsos/data/background.c1 differ
diff --git a/samples/apple2gs/gsos/fun2gs.po b/samples/apple2gs/gsos/fun2gs.po
new file mode 100644
index 0000000..ce3ff78
Binary files /dev/null and b/samples/apple2gs/gsos/fun2gs.po differ
diff --git a/samples/apple2gs/gsos/fun2gs.sys16 b/samples/apple2gs/gsos/fun2gs.sys16
new file mode 100644
index 0000000..4477f39
Binary files /dev/null and b/samples/apple2gs/gsos/fun2gs.sys16 differ
diff --git a/samples/apple2gs/gsos/link.s b/samples/apple2gs/gsos/link.s
new file mode 100644
index 0000000..e59169e
--- /dev/null
+++ b/samples/apple2gs/gsos/link.s
@@ -0,0 +1,17 @@
+//
+// fun2gs linker file
+//
+	; Stack, and Direct page space
+	; in Bank0	
+	section DirectPage_Stack,BSS
+	ds.b 1024
+
+	incobj "start.x65"
+	incobj "dbgfnt.x65"
+	incobj "lz4.x65"
+	incobj "blit.x65"
+	incobj "background.x65"
+	
+	; Get these things in the same bank
+	;Merge start,dbgfont
+
diff --git a/samples/apple2gs/gsos/macros/common.i b/samples/apple2gs/gsos/macros/common.i
new file mode 100644
index 0000000..99cb550
--- /dev/null
+++ b/samples/apple2gs/gsos/macros/common.i
@@ -0,0 +1,48 @@
+;
+; common.i 
+;
+
+; merlin mx macro
+macro mx mx
+{
+	if (0 == (mx&%10))
+		A16
+	else
+		A8
+	endif
+	if (0 == (mx&%01))
+		I16
+	else
+		I8
+	endif
+}
+				 
+macro _shadowON
+{
+	lda >$00C035
+	and #$FFF7
+	sta >$00C035
+}
+
+macro _shadowOFF
+{
+	lda >$00C035
+	ora #$0008
+	sta >$00C035
+}
+
+macro _auxON
+{
+	lda >$00C068
+	ora #$0030
+	sta >$00C068
+}
+
+macro _auxOFF
+{
+	lda >$00C068
+	and #$FFCF
+	sta >$00C068
+}
+				 
+