-
Need some help making a BASIC gameI'm creating a text adventure in 128 BASIC (I don't like using the 'keywords' in 48 BASIC - It's slow and annoying!) called "The Legend of The Red Dr…
... the input words to the strings in this array and then ...
REM tokenparser sets index variable command
GOSUB commandhandlers + command ... -
Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …
This one will work for strings of any length, it scrolls ... /> [/code]
The system variable 'SCR CT' is stored at ... -
You all know this, right?Type 10 PRINT "DIXONS IS SHIT" 20 GOTO 10 RUN when it says: Scroll? Press BOTH SHIFT KEYS then ENTER see what you get. I want to know what thi…
Yep, I just tried it.
?=23
?=8
There is still no distinction between lower and upper case, so ?=?.
Strings work too, as do longer variable names.
?$="Hej?"
??=5 -
Speeding up BasicHi, Does anyone know whether it is faster to use variables than numbers in Sinclair basic? What I mean for example, is Poke A,D quicker than Poke 5…
... pointers for integers, floats and strings and separate pointers for each ... a search for the 100th variable must sift through 99 unwanted ... could get to the 100th variable in one or two lookups ... -
z88dk+splib2 sprites question.I'm creating a game and I have several "states" for my main sprite, such as jump, facing left, facing right, etcetera. All those states require a dif…
... function which would draw a variable-sized static tile (i.e ... large tiles from sp_PrintString strings. These strings can contain control codes ... print these "large tile" strings at any point on screen ... tiles to build these tile strings from...
- ... -
Draft specs for TZX v1.20Hi all! In the attempt to restart the development of the TZX format, I've put online the first version of the draft document [1]. At the moment ther…
... row of the table. Binary strings are parsed from left to ... think we should move the variable-length fields (sync table and ... -
+3e file manager program/projectFirstly let's get one thing sorted. This program/project is written entirely in basic, as I am a lamo who doesnt know enough M/C. It really Is'nt th…
... parts to the user input strings. Basicaly you should be able ... to the string into the variable [B]l[/B]. Then you ... -
If a C64 can do it...Forgive me if this isn't the right section. We've seen coders surprising us over and over again with excellent demos and things that a few years ago…
... libraries in Spectrum C implementations. Strings in basic consist of a ... stored at some address. C strings are just a list of ... value (a copy of the variable passed to a function is ... sent not the variable itself), the notion of how ... -
Speed of variables vs. POKE/PEEKGreetings, I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone already knew …
... over? Or does the variable get trashed from the list ... matter when you define your variable (beginning of the program, ... because whenever you REASSIGN a variable, it puts it back to ... an optimisation issue then strings which are variable length.
... -
Speed of variables vs. POKE/PEEKGreetings, I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone already knew …
... correct? Does Line 30 shift variable "a" back to the top ... whatever else happens, if simple variable 'a' is defined first it ... end of the list. Substituted strings always have their new version ... numeric variables, arrays and other strings to find it.
A ... -
Speed of variables vs. POKE/PEEKGreetings, I'm sure I could probably find this out after careful study of the 48K ROM disassembly, but I was wondering whether someone already knew …
... 10 and 20 show a variable table containing { a$ }
... a variable table containing { [b]b$, a$[/b] }
Clearly, strings ... a number as a FOR variable (which has to contain additional ... with BASIC variables - ones a variable is defined it will never ... -
How to install fuse in Ubuntu? Warning: Newbie trying to escape from MicrosoftThe title says everything. I have downloaded and decompressed fuse-0.8.0.tar.gz and I don't know what to do. Synaptic doesn't have fuse, and I haven'…
... h... yes
checking for strings.h... yes
checking ... .h... no
checking for strings.h... (cached) yes
... , or set the GTK_CONFIG environment variable to the
*** full ... , or set the GLIB_CONFIG environment variable to the
*** full ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... functions for converting numbers to strings, strings to numbers, generating random ... br /> When you declare a variable of some type, the compiler ... of something. A pointer variable needs two bytes of ... [/code]
The variable "s" holds the address of ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... /> [/code]
are special variable declarations unique to z88dk. A ... /wiki/doku.php/library:string"]strings[/URL] library; we'll see ... string message to print (remember strings in C are a list ... zero. Recall that all C strings end in a zero byte ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... standard C function strtok() in strings.h should come to mind ... have now is several C strings contained inside the original string ... the help of the system variable CHARS as we did in ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... know that on the Spectrum strings are stored in RAM so ... of code and constants (including strings) that is destined for a ... memory address as a pointer variable can. You can index in ... ++ because s2 is not a variable that can be incremented; it ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... the equivalent :) The basic string slice operation creates a new temporary ... you may want a temporary variable to hold that value if ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... including level, current round, global variable pool, etc
[*][B ... contains the actual code and variable space allocations, whereas the ... making space for the variable, just informing the compiler ... that in C all strings are sequences of ascii characters ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... -known function "memcpy()" from the strings.h library is used to ... colour only into the global variable "g_uchar0". You may recognize the ... -
Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…
... . Both could be replaced by strings with the text hidden as ... logic is currently performed by variable assignments that control the game ... into table lookups encoded into strings. This way, we could implement ... -
Benchmark timeWell, the BASIC benchmark posted in Creative Computing back in the 80s came up as a topic on the AtariAge forums. The article is available online an…
... when it becomes cluttered by variable definitions and redefinitions. Sinclair ... this cost over all variable definitions in the program.< ... less useful by only allowing strings to be fixed size ... slicing and allows variably sized strings.
Etc, etc, ... -
Probing the variables in 128K modeHello again! Briefly, I'm writing an m/c routine to read some BASIC variables. So, before I start, I try to get an idea for the structure of how var…
... a routine to print the variable t$ on the screen but ... type the magazine page text strings into DATA statements without worrying ... to pick out a specific variable. There's a lot of ... -
Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…
... in player.c. The global variable "g_uchar0" is used to keep ... to follow by now. The strings containing the scores contain some ... the buried "\xHH" in the strings. See d_print() in display.c ... -
A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …
... being you have to specify variable types. This might introduce some ... the compiler could infer the variable types from the source listing ... memory allocation used in the strings code. It's a good ... -
A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …
... being you have to specify variable types. This might introduce some ... the compiler could infer the variable types from the source ... highly recommended.
When a variable is not declared, the compiler ... memory allocation used in the strings code. It's a good ... -
A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …
... -size blocks with C strings implemented in procrustean manner ... in Basic is different -- strings are regularly tossed away and ... reassigned with new strings of very different lengths. ... each variable changes. But you're saying you also handle strings ... -
A BASIC compiler projectHi, I started my own BASIC compiler for the ZX Spectrum (and Z80 machines) 3 months ago. It's still in ALPHA stage (when it is mature, I will write …
... fixed-size blocks with C strings implemented in procrustean manner ... in Basic is different -- strings are regularly tossed away and ... each variable changes. But you're saying you also handle strings in ... it's considered a local variable (and freed on exit) ... -
CSSCGC 2008 has now officially begunFor coming last in the 2007 crap game compo, I have the honour and privilege of hosting CSSCGC 2008! I have now put up the CSSCGC 2008 website at …
... in Sinclair Basic terms! DATA strings don't need quotes around ... quite a few two letter variable names in the code - I ... -
BASin r14d - Final bugfix for the r14 seriesOk, there's not a great deal to "show" here, as most of the work has been going on "under the hood" so to speak. And there's been a [i]lot[/i] of wor…
... text using the current CHARS variable - and when the 128k ROM ... set :-)
This affects strings, not BASIC text. I can ... -
Trouble compiling my BASIC programI've been trying to get a compiled BASIC version of Swift Turtle with no luck so far! I first tried MCoder 3 and it [i]seemed[/i] to compile the prog…
... to READ in multiple strings for a variable declared as a single ...