completely removed all hacks for scratchpad ram, loader and bar asm only write to text RAM, no scratchpad ram.

This commit is contained in:
Egan Ford 2017-05-03 11:37:16 -06:00
parent 8498a0ef05
commit a3721ecb54
7 changed files with 36 additions and 8 deletions

View File

@ -51,15 +51,15 @@ Windows/MinGW:
```
usage: c2d [-vh?]
c2d [-bum] [-r row] [-t filename] [-s start address override] input[.mon],[load_address] output.dsk
c2d [-bgm] [-r row] [-t filename] [-s start address override] input[.mon],[load_address] output.dsk
-h|? this help
-m jump to monitor after booting
-s XXXX jump to XXXX after booting
-t filename, where filename is a 1K $400-$7FF text page splash screen
The splash screen will display while the binary is loading
-u do not patch screen holes
-b animated loading bar (experimental)
-b animated loading bar
-g splash page is mixed mode GR
-r override row default of 19 with 'row'
-v print version number and exit
@ -82,6 +82,34 @@ Examples:
c2d -t gameserverclient.textpage gameserverclient,800 gameserverclient.dsk
```
### Splash Page Examples
Click on image to see video.
```
c2d -t gameserverclient.textpage gameserverclient,800 gameserverclient.dsk
```
`-t gameserverclient.textpage` tell `c2d` to put up a text splash page while the binary is loading.
[![splash](https://img.youtube.com/vi/9EPy0JnnJyA/0.jpg)](https://www.youtube.com/watch?v=9EPy0JnnJyA "splash")
```
c2d -b -t barloader.textpage gameserverclient,800 gameserverclientbar.dsk
```
`-b` adds an animated bar on line 19.
[![splash](https://img.youtube.com/vi/D3SaHlw4fgM/0.jpg)](https://www.youtube.com/watch?v=D3SaHlw4fgM "splashbar")
```
c2d -b -g -r 23 -t bargrloader.textpage gameserverclient,800 gameserverclientbargr.dsk
```
`-r 23` moves the animated bar to line 23, and `-g` indicates the splash page is mixed mode text/gr.
[![splashbargr](https://img.youtube.com/vi/4Ik1eraAM6c/0.jpg)](https://www.youtube.com/watch?v=4Ik1eraAM6c "splashbargr")
### text2page Example
Input is expected to be ASCII text (LF or CRLF line terminated). Only the first 40 characters/line and the first 24 lines are read. See `gameserverclient.text` and `barloader.text` examples.
@ -124,7 +152,7 @@ Yes. No input checking. Big Endian untested.
### The Ugly Stuff
c2d, Code to Disk, Version 0.56
c2d, Code to Disk, Version 0.57
(c) 2012,2017 All Rights Reserved, Egan Ford (egan@sense.net)

Binary file not shown.

BIN
bin/c2d

Binary file not shown.

Binary file not shown.

2
c2d.h
View File

@ -20,7 +20,7 @@ usage: c2d [-vh?]\n\
-s XXXX jump to XXXX after booting\n\
-t filename, where filename is a 1K $400-$7FF text page splash screen\n\
The splash screen will display while the binary is loading\n\
-b animated loading bar (experimental)\n\
-b animated loading bar\n\
-g splash page is mixed mode GR\n\
-r override row default of 19 with 'row'\n\
-v print version number and exit\n\

View File

@ -20,7 +20,7 @@ usage: c2d [-vh?]\n\
-s XXXX jump to XXXX after booting\n\
-t filename, where filename is a 1K $400-$7FF text page splash screen\n\
The splash screen will display while the binary is loading\n\
-b animated loading bar (experimental)\n\
-b animated loading bar\n\
-g splash page is mixed mode GR\n\
-r override row default of 19 with 'row'\n\
-v print version number and exit\n\

View File

@ -18,8 +18,8 @@
unsigned char colors[15] = { 0x2, 0x6, 0x7, 0xE, 0xC, 0x4, 0xD, 0x9, 0xB, 0x3, 0x1, 0xA, 0x5, 0x8, 0x0 };
const char text[4][41] = {
"EXAMPLE GR SPLASH SCREEN",
"LOADING GAME SERVER CLIENT ...",
"EXAMPLE GR/TEXT SPLASH SCREEN",
"LOADING GAME SERVER CLIENT...",
"________________________________________",
"________________________________________",
};