Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.sinclair > #13 > unrolled thread
| Started by | spike1@freenet.co.uk |
|---|---|
| First post | 2011-03-02 16:05 +0000 |
| Last post | 2011-03-02 10:44 -0800 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.sys.sinclair
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Blackjack for the ZX80 (mostly) completed spike1@freenet.co.uk - 2011-03-02 16:05 +0000
Re: Blackjack for the ZX80 (mostly) completed Siegfried Engel <nixgeht@mailinator.com> - 2011-03-02 10:37 -0800
Re: Blackjack for the ZX80 (mostly) completed Siegfried Engel <nixgeht@mailinator.com> - 2011-03-02 10:44 -0800
| From | spike1@freenet.co.uk |
|---|---|
| Date | 2011-03-02 16:05 +0000 |
| Subject | Re: Blackjack for the ZX80 (mostly) completed |
| Message-ID | <af6248-ns4.ln1@librarian.sky.com> |
And verily, didst Siegfried Engel <nixgeht@mailinator.com> hastily babble thusly: > On 2 Mrz., 01:09, "N.N. Thayer" <nnthay...@gmail.com> wrote: >> I now have a mostly-playable ZX80 conversion of Tim Hartnell's ZX81 >> blackjack. >> >> Here's my code so far: >> >> http://www.easyscreens.info/gallery/20110301/2.png >> >> I have this in an .O file too, but don't have a place to host it. > > Perhaps try > > http://www.rwapsoftware.co.uk/zx80/zx80_software.html > >> >> Some known issues: >> - To compensate for the ZX80's lack of scrolling, I had to insert a >> couple of CLS statements. This works for the vast majority of games, >> but every so often you'll have one where the computer hits more than 4 >> times, which takes you to the bottom of the screen and errors out. You >> can do a CONTINUE from the prompt to keep the program going, but in >> the interest of user-friendliness I'd like to avoid it altogether. Not >> sure of the best way to do this yet. > > I had a similar problem in my ZX81 web-server, when printing debug > messages to screen. > My solution is: I check the next print postition on screen (by > "peeking" a system variable) and do a CLS, if it is too near to the > last line. > Works in most cases ... Err, but the zx81 has the scroll command... you *could just check if the print position is in the last row of the screen and if it is, scroll however many times are required... There's also print at to reset the print position to wherever you want so you could reset it to the top of the screen and not clear it, keeping log contents on screen for a bit longer... > HTH Siggi -- | spike1@freenet.co.uk | | | Andrew Halliwell BSc | "The day Microsoft makes something that doesn't | | in | suck is probably the day they start making | | Computer science | vacuum cleaners" - Ernst Jan Plugge |
[toc] | [next] | [standalone]
| From | Siegfried Engel <nixgeht@mailinator.com> |
|---|---|
| Date | 2011-03-02 10:37 -0800 |
| Message-ID | <9f34a22c-a100-4c49-accc-3f2132202369@z31g2000vbs.googlegroups.com> |
| In reply to | #13 |
On 2 Mrz., 17:05, spi...@freenet.co.uk wrote: > And verily, didst Siegfried Engel <nixg...@mailinator.com> hastily babble thusly: > > > > > On 2 Mrz., 01:09, "N.N. Thayer" <nnthay...@gmail.com> wrote: > >> I now have a mostly-playable ZX80 conversion of Tim Hartnell's ZX81 > >> blackjack. > > >> Here's my code so far: > > >>http://www.easyscreens.info/gallery/20110301/2.png > > >> I have this in an .O file too, but don't have a place to host it. > > > Perhaps try > > >http://www.rwapsoftware.co.uk/zx80/zx80_software.html > > >> Some known issues: > >> - To compensate for the ZX80's lack of scrolling, I had to insert a > >> couple of CLS statements. This works for the vast majority of games, > >> but every so often you'll have one where the computer hits more than 4 > >> times, which takes you to the bottom of the screen and errors out. You > >> can do a CONTINUE from the prompt to keep the program going, but in > >> the interest of user-friendliness I'd like to avoid it altogether. Not > >> sure of the best way to do this yet. > > > I had a similar problem in my ZX81 web-server, when printing debug > > messages to screen. > > My solution is: I check the next print postition on screen (by > > "peeking" a system variable) and do a CLS, if it is too near to the > > last line. > > Works in most cases ... > > Err, but the zx81 has the scroll command... > you *could just check if the print position is in the last row of the screen > and if it is, scroll however many times are required... > There's also print at to reset the print position to wherever you want so > you could reset it to the top of the screen and not clear it, keeping log > contents on screen for a bit longer... That is TRUE in BASIC, but my web-server is written in C! So I did something like "Peek" in BASIC, but implemented it in C :-) Siggi
[toc] | [prev] | [next] | [standalone]
| From | Siegfried Engel <nixgeht@mailinator.com> |
|---|---|
| Date | 2011-03-02 10:44 -0800 |
| Message-ID | <0455c8b6-0fe6-42b2-b599-84c191fab58a@k38g2000vbn.googlegroups.com> |
| In reply to | #14 |
On 2 Mrz., 19:37, Siegfried Engel <nixg...@mailinator.com> wrote:
> On 2 Mrz., 17:05, spi...@freenet.co.uk wrote:
>
>
>
> > And verily, didst Siegfried Engel <nixg...@mailinator.com> hastily babble thusly:
>
> > > On 2 Mrz., 01:09, "N.N. Thayer" <nnthay...@gmail.com> wrote:
> > >> I now have a mostly-playable ZX80 conversion of Tim Hartnell's ZX81
> > >> blackjack.
>
> > >> Here's my code so far:
>
> > >>http://www.easyscreens.info/gallery/20110301/2.png
>
> > >> I have this in an .O file too, but don't have a place to host it.
>
> > > Perhaps try
>
> > >http://www.rwapsoftware.co.uk/zx80/zx80_software.html
>
> > >> Some known issues:
> > >> - To compensate for the ZX80's lack of scrolling, I had to insert a
> > >> couple of CLS statements. This works for the vast majority of games,
> > >> but every so often you'll have one where the computer hits more than 4
> > >> times, which takes you to the bottom of the screen and errors out. You
> > >> can do a CONTINUE from the prompt to keep the program going, but in
> > >> the interest of user-friendliness I'd like to avoid it altogether. Not
> > >> sure of the best way to do this yet.
>
> > > I had a similar problem in my ZX81 web-server, when printing debug
> > > messages to screen.
> > > My solution is: I check the next print postition on screen (by
> > > "peeking" a system variable) and do a CLS, if it is too near to the
> > > last line.
> > > Works in most cases ...
>
> > Err, but the zx81 has the scroll command...
> > you *could just check if the print position is in the last row of the screen
> > and if it is, scroll however many times are required...
> > There's also print at to reset the print position to wherever you want so
> > you could reset it to the top of the screen and not clear it, keeping log
> > contents on screen for a bit longer...
>
> That is TRUE in BASIC, but my web-server is written in C!
> So I did something like "Peek" in BASIC, but implemented it in C :-)
>
> Siggi
Here is the code fragment:
/* screen check */
i = *((u8_t *) 16442);
if (i < 4) /* clear screen before error 5 occurs */
{
cls();
}
:-)
Siggi
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.sinclair
csiph-web