dos33fsprogs/mode7_demo
Vince Weaver 292ef8059b credits: all added back in now
a few bytes over though
2018-03-19 19:06:13 -04:00
..
music mode7: update makefile 2018-02-28 16:45:09 -05:00
a2.scrolltext mode7_demo: update with working scroller 2017-12-18 01:05:05 -05:00
checkerboard_lookup.s mode7_demo: initial scriptable flying 2017-12-21 15:14:46 -05:00
credits.s credits: all added back in now 2018-03-19 19:06:13 -04:00
deater.scrolltext mode7_demo: update with working scroller 2017-12-18 01:05:05 -05:00
interrupt_handler.s mode7: music restarts properly when restarting 2018-03-19 16:33:08 -04:00
island_lookup.s mode7_demo: initial scriptable flying 2017-12-21 15:14:46 -05:00
island_map.inc mode7_demo: start adding in the mode7 code 2017-12-21 14:59:06 -05:00
Makefile mode7: move in mockingboard code, strip out extra detect code 2018-03-19 19:02:28 -04:00
mockingboard.s mode7: move in mockingboard code, strip out extra detect code 2018-03-19 19:02:28 -04:00
mode7_decompress.s mode7: shave about 20 bytes off 2018-03-19 16:51:14 -04:00
mode7_demo_backgrounds.inc mode7: have assembly working with new compressed rle 2017-12-15 16:19:01 -05:00
mode7_demo.dsk mode7_demo: work on getting more sound time 2018-03-18 00:55:09 -04:00
mode7_demo.s mode7: move in mockingboard code, strip out extra detect code 2018-03-19 19:02:28 -04:00
mode7.s mode7_demo: slightly better island flight track 2018-01-29 21:11:35 -05:00
rasterbars.s chiptune/mode7: update rasterbars code comments 2018-02-27 22:46:19 -05:00
README.mode7_demo mode7: get VMW logo on load screen working 2018-03-19 00:17:12 -04:00
sprites.inc mode7: add some more ship sprites 2018-03-17 01:02:19 -04:00
starfield_demo.s mode7: more tweaks 2018-03-19 18:30:34 -04:00
starry_sky.scroll mode7_demo: start adding in the mode7 code 2017-12-21 14:59:06 -05:00
TODO mode7: get VMW logo on load screen working 2018-03-19 00:17:12 -04:00
vmw_logo.inc mode7: unoptimize the mockingboard playing 2018-03-19 01:10:38 -04:00
wave.krg mode7: rename music file 2018-03-19 16:34:54 -04:00
zp.inc mode7: more work on starfield 2018-03-15 08:08:05 -04:00

Plan:
	Load at $1000
	Decompress to $2000

Memory Map
==========

(not to scale)

 --------  $ffff
| ROM/IO |
 --------  $c000
|        |      32k decompress
 --------  $4000
|  load  |      8k
 --------  $2000
|  free  |
 --------  $1c00
| Scroll |
|  Data  |
 --------  $1800
|Multiply|
| Tables |	
 --------  $1000
|GR pg 2 |	1k
|--------  $0c00
|GR pg 1 |	1k
|--------  $0800
|GR pg 0 |	1k
 --------  $0400
|        |	0.5
 --------  $0200
| stack  |	0.25
 --------  $0100
|zero pg |	0.25
 -------   $0000

=============================================
Getting the VMW logo to appear on page2 HGR
==============================================

; Need to have lines at
        ;       $4000   AA,AD,D5,AC,95
        ;       $4400   A8,D5,95,35,85 1k
        ;       $4800   A0,55,26,55,81 2k
        ;       $4C00   00,00,00,00,00 3k


MAIN:						0000 - 013A = 0x13A = 314
.include "deater.scrolltext"			13DF - 1577 = 0x198 = 408
.include "a2.scrolltext"			1577 - 1695 = 0x11E = 286
								=============
									1008

.include "starfield_demo.s"			1695 - 19Ac = 0x317 = 791
.include "rasterbars.s"				19AC - 1A9E = 0xF2  = 242
								=============
									1033

.include "../asm_routines/gr_fast_clear.s"	01B6 - 02A0 = 0xEA = 234
.include "credits.s"				1A9E - 1CEA = 0x257 = 599
.include "interrupt_handler.s"			1CEA - 1DE3 = 0xD9  = 217
							===================
								1050
3D (61) too many, want 173


.include "../asm_routines/gr_unrle.s"		013A - 01B6

.include "../asm_routines/gr_hlin.s"		02A0 - 02FD
.include "../asm_routines/gr_setpage.s"		02FD - 0311
.include "../asm_routines/pageflip.s"		0311 - 032B
.include "../asm_routines/gr_fade.s"		032B - 0459
.include "../asm_routines/gr_copy.s"		0459 - 0491
.include "../asm_routines/gr_scroll.s"		0491 - 0565 = 0xC5 = 197
.include "../asm_routines/gr_offsets.s"		0565 - 0595
.include "../asm_routines/gr_plot.s"		0595 - 05C7
.include "../asm_routines/text_print.s"		05C7 - 060F

.include "../asm_routines/mockingboard_a.s"	060F - 06BC = 0xAD = 173

.include "mode7.s"				06BC - 1201 = 0xB43 = 2883

.include "mode7_demo_backgrounds.inc"		1201 - 13DF = 0x1DE = 478