World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.109s
<1234567…34>
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... I didn't took time to examine this (and others ... My method to fast map a 32bit integer to a 0-1 ... but when reverting back to the original one the ... Calling your routine returns a 32 bit pseudo-random int, ... returned in DEHL (according to Gedlion routine above), but ...
    boriel boriel May 2012 Development
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... library I do have to stick to some specs:
    ... to the
    objects being compared. The function shall return an integer ... less than, equal to, or
    ... array is 2 bytes (pointer to string)
    ld ix,strcasecmp_callee ; ...
    Alcoholics Anonymous Alcoholics Anonymous June 2012 Development
  • Project on ZX Spectrum in UniversityHi everyone, I am Max, student of media studies in berlin, and I have to do a little project on the spectrum. I am working on a sinclair zx spectrum…

    ... some answers, ways how to program these things on the ... 1. This was just to show how to work with arrays / vectors ... />
    FOR i=1 to 3: b=b+a(i ... get the value of a integer or string, I don't know ... programming it's about getting to know the machine.
    ...
    lomax030 lomax030 December 2012 Announcements
  • Compiling Lisp to Z80.I am doing some thought experiments on this. Here is an example of a Lisp program. It adds two numbers together. [code] (define (add x y) (if (= …

    ... to tell if x is a number or a string, ...
    For your program to support dynamic data types you ... need to define and pass around ... references (pointers) to your variables which would ... it's type (1=Integer, 2=String etc.) followed by ...
    BloodBaz BloodBaz February 2013 Chit chat
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... hl, bc ; end of string plus one to HL
    dec hl ... location
    bit 6, c ; string?
    jr z, dim_clear ; jump ... so
    call int_to_fp ; else integer to last value
    cp '.' ; decimal ...
    chev chev October 2013 Development
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ...

    ; write unsigned decimal integer to ascii buffer
    ;
    ; enter ... /> ; write two leading zeroes to output string

    ld a,'0 ... to the terminating \0 byte so you can continue building a string ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • 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…

    ... L:24 Warning:#8:Converting integer to pointer without cast
    ... 270 Warning:#9:Converting pointer to integer without cast
    ... 275 Warning:#9:Converting pointer to integer without cast
    ... .c" L:32 Warning:#8:Converting integer to pointer without cast ...
    szeliga szeliga December 2013 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ...

    #define BytesPerLine 32
    #define ScreenHeight 192
    ;* string contains string pointer
    ;* falls through to _print
    ... data starts at space, ASCII 32
    tax ; save ...
    JamesD JamesD September 2015 Development
  • Small Machine Code Routines Which Maybe UsefulAs part of creating Flynn's Adventure in Bombland I created a lot of little routines to do all sorts of things. A lot of these I created based on inp…

    ... 32768
    ;point IX at string then call printstring
    ; ... control codes (see printjptable) 32 we print a char
    to 240 we need to move to a new ... a,e
    add a,32
    ld e,a< ... 0, 68, 0
    db 32, 32, 66, 68, 68, 132, 136 ...
    R-Tape R-Tape December 2015 Development
  • Function with push and popIm trying to see if I understand push and pop when it comes to using to pass parameters to functions: [code] LD HL,16384 LD A,5 Push AF Ld A…

    ... /> ld hl,buffer ; address to write ascii string to
    push hl
    jr $
    ....
    buffer: defs 32



    ....

    ; write digits to string

    ; ix = char *buf ...
    Alcoholics Anonymous Alcoholics Anonymous April 2016 Development
  • Simple/standard Linux assembly development environmentIs there a standard or recommended Spectrum Z80 assembly language environment for Linux based folks? I was looking at the assembly language posted in…

    ... )
    [/quote]

    Just to update that: sdcc is now ... from asm including float math, integer math, string functions, stdio functions, sorting ...
    Alcoholics Anonymous Alcoholics Anonymous March 2017 Development
  • z88dk sp1lib with fzxThe numbers dont seem to display properly? fzx by itself works [quote] // for targets supporting fzx // zcc +zx -vn -startup=31 -O3 -clib…

    ... 96 characters from code 32 (space) to code 127 inclusive
    to print a string, it will expect to be given ... sp1_PrintAtInv() to print individual characters of a string one at ... #pietro_zx.asm-110"]prints string and integers[/url] written ...
    Alcoholics Anonymous Alcoholics Anonymous June 2017 Development
  • i need a sideways scrolling program written in basicso like ghosts and goblins it scrolls along with the player. i had help with this before in making a tunnel game but this time i need it to be a able…

    ... when i add the second string to it.[/quote]
    What ... one string on the background layer, then loops round 32 times to display ... it scrolled around. Then it prints a second string ... one then loop-scrolls that 32 times.

    If ...
    joefish joefish January 2018 Development
  • i need a sideways scrolling program written in basicso like ghosts and goblins it scrolls along with the player. i had help with this before in making a tunnel game but this time i need it to be a able…

    ... way to do that is to print the first 32 characters to the ... So print your first string of 32 characters at row 4 ... . so just off-screen to the left the scene is ... when the view scrolls round to it.

    ... around. If you want to create the effect of a ...
    joefish joefish January 2018 Development
  • How to write a simple C+asm horizontal scrolling game (Tutorial, z88dk)[b]How to write a simple C/asm horizontal scrolling game[/b] [b]Note:[/b] This tutorial has multiple parts... I am still writing but this first pa…

    ... , this looks pretty similar to the basic version now.
    to print a string.

    And ... , one to print a string, and one to convert an integer to a string.

    [b]Here is the complete code, up to ...
    Timmy Timmy September 2020 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ... b, 3 ; length of string
    ld a,(ix+2 ... br /> cp 32 ; about to test A < 32 see my ... /> wearefine
    ; NEED TO DO THE ROW CHECK BEFORE ... ; this is what we tried to do before calling
    ; ... don't need to do it again
    ; ...
    Paradigm Shifter Paradigm Shifter June 2022 Development
  • How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…

    ... b, 3 ; length of string
    ld a,(ix+2 ... br /> cp 32 ; about to test A < 32 see my ... /> wearefine
    ; NEED TO DO THE ROW CHECK BEFORE ... text_out
    ; we need to get the column back in ... ; this is what we tried to do before calling
    ; ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ...
    e.g. to define a string containing a CR, use ... a
    ld bc, 32
    ldir
    pop ... a
    ld bc, 32
    ldir
    pop ... /> inc a
    cp 32
    jr z, .nextline ... position
    ; HL = pointer to string
    puts:
    ld ...
    Paradigm Shifter Paradigm Shifter August 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... /> inc a
    cp 32
    jr z, .nextline< ... position
    ; HL = pointer to string
    puts:
    ld a ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... /> inc a
    cp 32
    jr z, .nextline< ... position
    ; HL = pointer to string
    puts:
    ld a ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... a
    ld bc, 32
    ldir
    pop ... a
    ld bc, 32
    ldir
    pop ... a
    ld bc, 32
    ldir
    pop ... /> inc a
    cp 32
    jr z, .nextline ... br />
    ; HL points to string of digits
    skipleadingzeros:
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... , a
    ld bc, 32
    ldir
    pop ... /> inc a
    cp 32
    jr z, .nextline< ... position
    ; HL = pointer to string
    puts:
    ld a ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... a
    ld bc, 32
    ldir
    pop ... a
    ld bc, 32
    ldir
    pop ... (scr_out_col), a
    cp 32
    ret c
    ... /> inc a
    cp 32
    jr z, .nextline ...
    ; HL = pointer to string
    puts:
    ld ...
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Console frameworkStill working on Specotron, but at the point where working out the diagonal lines collision is not good at beer o'clock. In the meantime I've knoc…

    ... h, a
    ld bc, 32
    ldir
    pop bc ... /> ld (scr_out_col), a
    cp 32
    ret c
    xor ... )
    inc a
    cp 32
    jr z, .nextline
    ret

    ; HL points to string of digits
    skipleadingzeros:
    Paradigm Shifter Paradigm Shifter September 2022 Development
  • Elite RZX filesHi there, I'm thinking ahead to the 1985 chapter of the documentary, and one thing I want to concentrate on (well, dedicate 32 secs to anyway) is El…

    ... /> I'm thinking ahead to the 1985 chapter of the ... I want to concentrate on (well, dedicate 32 secs to anyway) ... I'll leave that to you to decide what that ... /> But, as I want to do something vector-graphicky for ...
    Please email them to me at [email="elite@the ...
    NickH NickH December 2004 Games
  • Fastest Block Drawing Code?Following on from my scrolling thread [URL="http://www.worldofspectrum.org/forums/showthread.php?p=351304#post351304"](http://www.worldofspectrum.org…

    ... direction I want to go in in order to scroll the screen ... 4x4 char block (4 bytes * 32 Rows) to the screen.

    to BLIT this to the screen as quickly ...
    robpearmain robpearmain May 2009 Development
  • BUG in zxspin and SpecEmu - read Loading speed in WAV fileI'm created a new save, but it can run at 44.1 KHz, to test it, i make a new file from WAV 44.1 KHz to 88.2 KHz. Load this file in a emulator zx-spin…

    ... run at 44.1 KHz, to test it, i make a ... from WAV 44.1 KHz to 88.2 KHz. Load this ... /> The max speed is 32 KHz to 64 KHz. Someone can fix ... /> I need 88.2 KHz to make a perfect wav file ... , in 256 bytes have up to 1.500 INs errors, the ...
    Z80user Z80user March 2012 Emulators
  • 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…

    ... that BASIC one-liner to redirect CAT to a string I thought that ... /> REM sa=string address; sl=string length; sd=DEFADD pointer to string definition
    7 LET sa=sd+20: FOR p=sd TO ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... either a string expression (if referencing a string variable) or ... REM TO COPY string to RAM or RAM to string or RAM to RAM< ... PARAMETERS
    a$=destin string expression, or destin location ... RAM;
    b$=source string expression, or source location ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    Im trying to simulate a 2 dimensional array ...
    slenkar slenkar December 2013 Development
<1234567…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
32 6.7K 11.7K
integer 761 1.1K
to 549.6K 1.6M
string 2.8K 5.1K

Related Threads

  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…
  • How to copy file from tape (*.tap) to disks (*.dsk) ?I am using zx32 with win98 and i want (in the emulate +3) copy files from virtual tapes to virtual disks.<br /> <br /> I use =&gt; load "NameOfFile" …
  • how to make a (protected) .DSK to disk transfer ?I know how to make file transfers between .DSK files and physical disks (logical copy).<br /> <br /> However, how can be done a physical sector trans…
  • how to move fdd300's files to pc emulator?Hi!<br /> I have some diskettes 3" for FDD3000 drive for Timex 2048. How can I read these 3"disk and move to PC ? I have some my own demos and rest s…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • unable to log in
  • how to download games
  • how to download games for vega
  • usr0 to 128
  • the adventure game i m trying to complete
  • how to add 32
  • inputting to a string array
  • hex to dez string
  • int32 to string
  • integer to string

Copyright © 2024 World of Spectrum