Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.sinclair > #13

Re: Blackjack for the ZX80 (mostly) completed

From spike1@freenet.co.uk
Newsgroups comp.sys.sinclair
Subject Re: Blackjack for the ZX80 (mostly) completed
Date 2011-03-02 16:05 +0000
Organization The league against squirrels
Message-ID <af6248-ns4.ln1@librarian.sky.com> (permalink)
References <5ecebf23-1a66-47d7-aff1-3b3917f617ca@r4g2000prm.googlegroups.com> <a93ab940-a519-46b1-ad8e-eb9e7ed0b810@z31g2000vbs.googlegroups.com>

Show all headers | View raw


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            |

Back to comp.sys.sinclair | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

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

csiph-web