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.022s
<1234567…34>
  • How to return to basic properly from ASMI am messing around with a fast stack copying routine. But I am getting "A: Invalid argument" error when I later return to basic. I know you h…

    ... messing around with a fast stack copying routine.
    But ... argument" error when I later return to basic.

    I know ... save all registers on the stack (including the shadow registers) before ... is used for the calculator stack or something? I'm not ...
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • PlusDlite problems with 128K modelsLast year I developed the PlusDlite, and already shipped out a couple of them. Only recently I discovered some problems with 128K models. I remember…

    ... QUOTE=velesoft;750301]After reset you can disable +D ... the third point, from address #0000, at which the ... ' ROM at address #0052.
    That address contains a RET ... br /> 004F UNPAGE_HL PUSH HL Stack return address.
    0050 UNPAGE_1 OUT ( ...
    bverstee bverstee February 2014 Hardware
  • SAVEing without waiting for keypresshello, here's question for y'all. is there a way in BASIC to bypass the "Start tape, then press any key" prompt when SAVEing an array? sorry if it'…

    ...
    PUSH HL ; 32612 229 stack return address to SA/LD-RET
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... both instances the required return to BASIC with a decimal fraction ... br /> call $2d2b ;STACK_BC stack the number in BC
    return address
    RET
    [/code ... the top of the calculator stack (apart from the change ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • Kiwi OS for z80 computerHi everyone, Nearly made my z80 computer with 2K ROM 32K RAM. It has an OS im still writing called Kiwi (apple, blackberry, you get the idea ;D) he…

    ... LOAD HL WITH STACK POINT LOCATION< ... ;RETURN

    ;*********************************
    ;(DIVIDE) BASIC DIVISION ... /> ;1 - ASK FOR ADDRESS
    ;#######################################################
    GOTO ... LOAD A WITH RESET SDA RESET SCLW RITE ...
    Robin Robin August 2011 Announcements
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    ... to save part of a BASIC program. The idea is that ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... LD (36864),SP ;Store the BASIC stack pointer. Note, this again ... /> 48928 LD HL,28659 ;Address of the filename (Note, ... br /> 48941 PUSH BC ;store return value

    ... br /> 48950 AND %11111000 ;Reset the last three bits. ( ...
    spodula spodula May 2010 Sinclair Basic
  • Z80 Machine Code Question...Hi Folks, I know not strictly a BASIC question but I have started to learn Z80 machine code - 25 years too late! :smile: I have been reading a book…

    ... /> PUSH DE ; Store DE on stack D5
    LD DE,2048d ... /> PUSH DE ; Store DE on stack D5
    LD DE,5888d ... ; Reset carry flag A7
    SBC HL,DE ; Subtract 5888d from address ... back 20E5
    RET ; Return to BASIC C9[/SIZE][/FONT]

    Paddy Coleman Paddy Coleman August 2010 Sinclair Basic
  • Z80 Machine Code Question...Hi Folks, I know not strictly a BASIC question but I have started to learn Z80 machine code - 25 years too late! :smile: I have been reading a book…

    ... /> PUSH DE ; Store DE on stack D5
    LD DE,2048d ... /> PUSH DE ; Store DE on stack D5
    LD DE,5888d ... ; Reset carry flag A7
    SBC HL,DE ; Subtract 5888d from address ... back 20E5
    RET ; Return to BASIC C9
    [/CODE]
    This ...
    Fikee Fikee August 2010 Sinclair Basic
  • Z80 Machine Code Question...Hi Folks, I know not strictly a BASIC question but I have started to learn Z80 machine code - 25 years too late! :smile: I have been reading a book…

    ... /> PUSH DE ; Store DE on stack D5
    LD DE,2048d ... /> PUSH DE ; Store DE on stack D5
    LD DE,5888d ... ; Reset carry flag A7
    SBC HL,DE ; Subtract 5888d from address ... back 20E1
    RET ; Return to BASIC C9[/SIZE][/FONT]

    Paddy Coleman Paddy Coleman August 2010 Sinclair Basic
  • Z80 Machine Code Question...Hi Folks, I know not strictly a BASIC question but I have started to learn Z80 machine code - 25 years too late! :smile: I have been reading a book…

    ... /> PUSH DE ; Store DE on stack D5
    LD DE,2048d ... /> PUSH DE ; Store DE on stack D5
    LD DE,5888d ... ; Reset carry flag A7
    SBC HL,DE ; Subtract 5888d from address ... back 20E1
    RET ; Return to BASIC C9[/CODE]

    Thank ...
    Fikee Fikee August 2010 Sinclair Basic
  • Z80 Machine Code Question...Hi Folks, I know not strictly a BASIC question but I have started to learn Z80 machine code - 25 years too late! :smile: I have been reading a book…

    ... 110 LD HL,16384d ; Start address of screen 210040
    120 ... DE ; Store DE on stack D5
    210 LD ... DE ; Store DE on stack D5
    270 LD ... br /> 280 AND A ; Reset carry flag A7
    290 ... 20E1
    360 RET ; Return to BASIC C9[/CODE]

    ...
    Paddy Coleman Paddy Coleman August 2010 Sinclair Basic
  • 128 BASIC-compatible way of loading BASIC as code?On a 48K Speccy (or from 48 BASIC or USR 0 mode on a 128K machine), one can do a silly trick like this: [code];; load a 4000 byte BASIC program ld i…

    ... /> org 65368
    ;save a BASIC program as headerless CODE
    stack ROM return address
    LD A,$ff
    LD (23610),A ;reset error ...
    Battle Bunny Battle Bunny September 2013 Development
  • What would be the simplest tape loading routine?I'm searching for some small assembly snippet I can use to load a (headerless or not) block from tape into RAM I can embed in my C games to load furt…

    ... /or modify) the OpenSE BASIC code (derived from the SAM ... ld hl, sa_ld_ret ; stack
    push hl ; return address
    in a, ( ... /> jr nc, ld_break ; return with carry reset if not found
    jr nc, ld_break ; return with carry reset if not found
    chev chev October 2013 Development
  • IF EXIST?In MS-DOS scripting, there is an IF EXIST command that lets you check wether a file exists in disk or not. There are any way to check it out from BA…

    ... first entry initialised)
    HL = Address of filename (wildcards permitted)
    address range
    (000h...3FFFh) is ROM 3 (the 48 BASIC ... page 0 and the machine stack resides in this area ( ... /> the top of memory, the stack held somewhere in that range ...
    The_Bert The_Bert October 2013 Sinclair Basic
  • Break into programIs there any way of stopping people using the break option in my software productions so they can list the code.

    ... trap from BASIC, save the address from the stack in the ... a sub-routine then that return address (or addresses, depending upon ... do a RETURN, otherwise the GOSUB stack should be reset by the ... RETURN
    9002 REM continues here when GOSUB stack has been reset< ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • Testers for new z88dk clibA long (long, long, long) time ago a few people offered to help test the new clib in z88dk. Much time has passed since then and I won't hold people,…

    ... the code it doesnt reset so maybe its not ... should be able to return to basic no problem. The crt ... is probably messing with basic's stack or variables; you ...
    void *fzx_draw; // address of fzx_draw function
    struct ...
    Alcoholics Anonymous Alcoholics Anonymous February 2015 Development
  • Peeking the contents on screen? How?You will have to forgive me for growing up on the C64, but I know I can peek the location of a character (1024 is top left from memory) and the peek …

    ... . Although if you then try return to BASIC, it will crash.
    BASIC program, and the stack space used by ... RAMTOP indicates the highest address usable by BASIC, and above that, you ... like. CLEAR doesn't actually reset that memory to 0 or ...
    joefish joefish August 2015 Sinclair Basic
  • 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…

    [quote="slenkar;857947"]
    boriels basic must be doing something to ...
    push af ; push return address

    ; stack is repaired here
    reset
    push af

    Alcoholics Anonymous Alcoholics Anonymous April 2016 Development
  • BREAK key on 128k SpectrumWhat happens when BREAK is pressed on a 128k Spectrum? Why is it different from what happens on a 48k Spectrum. Is there a way to disable it or to …

    ... the error. POKE the stack address pointed to by ERR_SP ... dec sp ;preserve error return on stack
    ei
    ... so if a return to BASIC is to be allowed ... reset error code
    LD HL,9000 ;line number of BASIC ...
    Battle Bunny Battle Bunny February 2018 Sinclair Basic
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ... anim frame until target reached, reset to 0

    jp 56 ;for smooth return to Basic


    ... ; HL Contains Screen Address
    ; DE Contains Char Address
    ; On Exit ...
    robpearmain robpearmain August 2004 Development
  • Restore Registers Returning to BASICI should really know this, but I've not written code that requires a return to BASIC for a loooong time. What registers need to be preserved / resto…

    ... written code that requires a return to BASIC for a loooong time ... be preserved / restored on return to BASIC after calling machine code? I ... ones)?
    [*]I register?
    [*]Stack (to previous value).
    [*]IM ...
    icabod icabod July 2006 Development
  • Comments for small "sprite" routine wantedI have just written my first machine code program and I am quite happy (and proud) to get it working! :smile: As a child I never learned anything e…

    ... ld de,35000 ;address of graphic loaded by basic
    ld b ... h,a ;return into h (high byte of screen address)
    ...
    ld e,8 ;reset e, number ... [B]endofprogram[/B]
    ret ;return to basic

    [B]setcarry ...
    Rickard Rickard May 2007 Development
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... address of item on machine stack to be used as error return ... shadow rom address
    ;
    exx ; save return to basic address
    ... ;
    exx ; restore return to basic address
    pop hl
    ... ld bc,($00ec) ; return the address of HOOK-CODE in ...
    jp jp February 2008 Hardware
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21

HitBox

Word Docs Hits
reset 4.8K 6.9K
stack 7.2K 10.4K
return 7K 10.6K
address 11.8K 21.2K
basic 24.7K 39K

Related Threads

  • Switch from 128k BASIC to 48k BasicHello,<br /> <br /> Is there a way to start off running a program in 128k basic (so that you can use the ramdisk facilities) but then switch back dow…
  • (Basic) Sinclair BASIC mode for EmacsI saw this [URL=http://www.worldofspectrum.org/forums/showthread.php?t=14622]post[/URL] regarding a Sinclair BASIC editing mode along with some Fuse …
  • Help with Visual Basic 6.0 vs Visual Basic.netI have a program that auto generates VB.Net code..... I know VB.net syntax and am happy with the code generated.<br /> <br /> However, I have been as…
  • What did Spectrum BASIC lack (and was BBC BASIC so good?)Over the years, I've read in various multi-format magazines, that BBC BASIC was probably the best BASIC available on an 8-bit machine. I've never use…
  • 48K BASIC to ZX81 BASIC conversion possible?Looking for an automated way of converting a BASIC program done on a<br /> 48K Spectrum to one for the ZX81. It's obvious that some things cannot<br …
  • ZX Basic 1.2.5 - a BASIC CompilerWell, my old post about ZX BASIC seems to be gone (maybe this phorum purges old threads?), so I started a new one.<br /> <br /> After more than 6 mon…
  • Return to +3 BASIC from 48K mode.Hello Spec-Chums!<br /> <br /> I don't know if this trick has been posted before, if it has, i apologise, but i have not been able to find it.<br /> …
  • Basic BASIC help needed RNDHi all,<br /> <br /> I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers.<br /> <br …
  • Star BASIC or *BASIC??? Anyone heard of this?Does anyone remember a thing called Star Basic or *basic?<br /> <br /> It was a tape that extended the BASIC instruction set and from memory you put …
  • Loading basic from basic?Hi Guys,<br /> <br /> Could you please help me. I want to create a menu on my plus 3 disks. If I use the line below I just get "c nonsense in basic…

Related Searches

  • stack
  • rst8 return to basic
  • return to basic
  • basic start address
  • return to basic hl
  • address of basic program peek
  • return basic error
  • registers return basic
  • basic interpreter address
  • return to basic assembly
  • basic address
  • basic address 23775
  • basic address 23755
  • registers return to basic
  • 32765 basic reset
  • poking the stack in basic
  • reset return address
  • reset stack
  • gosub return stack pok
  • gosub return stack poke

Copyright © 2024 World of Spectrum