Skip to content

Commit

Permalink
completely removed all hacks for scratchpad ram, loader and bar asm o…
Browse files Browse the repository at this point in the history
…nly write to text RAM, no scratchpad ram.
  • Loading branch information
datajerk committed May 3, 2017
1 parent 8498a0e commit a3721ec
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 8 deletions.
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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 ([email protected])

Expand Down
Binary file modified bargrloader.textpage
Binary file not shown.
Binary file modified bin/c2d
Binary file not shown.
Binary file modified bin/c2d.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion c2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
2 changes: 1 addition & 1 deletion c2d.h.0
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
4 changes: 2 additions & 2 deletions mandelbrotgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...",
"________________________________________",
"________________________________________",
};
Expand Down

0 comments on commit a3721ec

Please sign in to comment.