-
BASIC: Find the nearestHello guys) A few days ago I found oldie ?Jeux et casse-tete a Programmer? by Jacques Arsac (Paris?85) and suggested my nephew to try a few in Basic…
... solved via
a) bruteforce dim A/B scanning, e.g ... -
problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…
... 2-byte segment of a string l$. Items k1 & k2 ... number of segments in the string (ie. half the length of ... the string).
If I run ... within the bounds of the string? -
Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…
... a null value to a string or re-DIMing an ... undefined
jr z,STRARR ;string or any array
< ... /> jr CHKNXT
;string or any array
STRARR ... b,(hl) ;BC=length of string or any array
... -
A z88dk + sp1 demo (with source)Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how e…
Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how easy it actually is. (Actually I've already published this one some time ago, but this time the source is ... -
SpecBAS 0.726 Now available!Ok folks - After Piez rather naughtily announced his new bleeding-edge linux build of SpecBAS, I couldn't let Windows users miss out, so here it is…
... graphic bank or a graphic-string as a mouse pointer. You ... -
storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…
... . The method is to assign DIM a$() at the start of ... than "GO TO 9161". The DIM a$() is set as n ... SUB 9164: INPUT "New ";n: DIM a$(n-32): LET nv ... -
New game from Retroworks...soon!Very soon You will be able to play it again...the adventure is back! "... The dim light in the hall didn't let you see which melody was it; so you l…
... is back!
"... The dim light in the hall didn ... -
Google Chrome tip for searching InfoseekIf you are the sorts who searches Infoseek often for a game (for the Cryptic clues game thread maybe?), and find the 2 step process of going to the i…
... sets up the URL query string for the most popular sites ... -
SpecBAS 0.730 Now available!Well, I felt I should release SpecBAS as it is right now - my new son has been born (this one survived! \o/ ) and when he comes home I'll have very l…
... ] sets a graphic (as a string or a graphic bank) as ... -
BOB the Screen BuilderHere's my first attempt to use that tokenising idea from "more on storing mazes" in a screen designer - "[url=http://www.users.globalnet.co.uk/~jg27p…
... encoded as a single DATA string with a mixture of printable ... -
editing strings with INPUT LINEHere's the latest in my unpredictable series of utility routines. This one I needed for the SAGE game editor; it emulates INPUT LINE l$ but with the …
... the normal action. Any simple string can be used; just POKE ... $ contains the name of the string).
The vertical cursor ... /> res 6,(iy+$37) ;FLAGX: "string result"
set 5,(iy ... -
stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…
... ' and return them as a string, but however much I fiddle ... -
Sigmund Freud Pervert of Genius?On and off I sumble across the work of Sigmund Freud, and can't help thinking he was nothing more than seriously perverse. One such example he descr…
INPUT LINE and STOP in INPUTWhat was the reason for the ROM Editor routine causing "down arrow" while in an INPUT LINE to cause the "H STOP in INPUT" error report? Why doesn't i…
... the Input buffer into a string variable so I didn't ...Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…
... bytes being occupied by the string definition, pointer & machine ... redirection with an empty string; GO SUB 22 stops ... br /> REM sa=string address; sl=string length; sd=DEFADD pointer ... RETURN
REM update string definition
21 LET sl ...Open and read a file using +3DOS in MCForgive me if this has been asked and answered before, I've spent a fair few hours searching the forums and looking for books on the subject, all wit…
... the filename correctly (FF terminated string, case insensitive) by putting a ...number padding functionI wrote a number padding function in BASIC a while ago, but when I came to want it again I couldn't find it, so I've done this enhanced [url=http://w…
... get USR to return a string rather than a number. The ...OpenSE BASIC 3.1.1The eagle-eyed will have noticed that [url="http://www.worldofspectrum.org/infoseekid.cgi?id=0027510"]SE BASIC[/url] got an update last week. As a te…
SUPER INPUTA couple days ago I searched for an "INPUT string" routine that I could use in Assembly programs and supported multiple lines, but I found none. Thus…
... I searched for an "INPUT string" routine that I could use ...Impossible MissionHello, chaps. Having never played IM before, I gave it a bash last night. Figured out all the panel controls etc, and collected about 10 puzzle pie…
dungeon crawlerHi. I'm toying with idea of making simple dungeon crawler in spectrum basic and i actually got first version working somehow. [IMG]http://watashi.ic.…
... of fifteen empty spaces long string over the area and that ...Searching for a kids book - water leak, animal plumbers, picklesAs usual when I'm bored I tend to try and find stuff I read/saw in the dim, distant past :-D I'm trying to find a book I read in (I think) the mid-8…
SpecBAS 0.747 Now available!Hiya folks - it's update time again! SpecBAS has had a load of new fixes, as well as some new additions! Firstly, as you all wanted it, SpecBAS can…
... /> CONST optimisations to commonly used string operations - variable lookups will now ...Developing apps for ZX Spectrum with SDCCDue to troubles with makebin utility which always starts coversion at memory address 0x0000 and can only produce binaries < 32KB, it can't be used to…
Due to troubles with makebin utility which always starts coversion at memory address 0x0000 and can only produce binaries < 32KB, it can't be used to create ZX Spectrum programs with SDCC. I present [B]makezxbin[/B] utility (see chapter 4. bellow) and ...specy not working help pleaseHi dont know if this is the right place to ask but if anyone could help or direct me to the right place I would be most greatfull. bought a specy 48k…
... like interference you get a dim border the center is scrambled ...SpecBAS 0.752 Now available!Ok, after the heroic efforts of ASH-II and Galileo finding as many bugs as they can, the result is a more stable and capable interpreter! Here's wha…
... in their delta calculations
DIM no longer accepts negative index ...INKEY$ giving me troubleHello, I have been using BASin (great program by the way...) Sad though it seems during the typhoon here I have been re-learning my spec-skills an…
... /> 10 DIM A(12): DIM B(12): DIM C(12): DIM E(12): DIM F ... (12)
15 DIM ... S(12): DIM ... J(12): DIM ...WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …
Hi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place.
Thanks everyone so far, I feel I am making good progress.
Reading the book ZX Spectrum Games Master. Its a great start ...How much memory on sprites, maps etc.I've been tinkering with shifting & pre-shifting sprites recently, but as I haven't had that much experience with Z80 assembly I sometimes find it ha…
... long is a piece of string' question, but I'd be ...