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.042s
<1234567…34>
  • Detecting TR-DOS from BASICIs there a simple (or contrived :D ) way to detect the presence of a TR-DOS/Betadisk interface from BASIC? For fairly obvious reasons this can't rel…

    ... a TR-DOS/Betadisk interface from BASIC?

    For fairly obvious ...
    pissedbob pissedbob January 2006 Development
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this: PRINT USR xxxxx, arg1, arg2:…

    can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this:
    PRINT USR xxxxx, arg1, arg2: ...
    or so...
    Fikee Fikee April 2006 Development
  • ML routines from BASICCan anyone tell me which registers should be saved and restored when calling a ML routine from BASIC? How can one know which registers are modified …

    Can anyone tell me which registers should be saved and restored when calling a ML routine from BASIC?

    How can one know which registers are modified inside a system routine?

    Should the stack be also changed?
    rinconete rinconete March 2009 Development
  • Printing in 64 columns, from Basic?Not strictly a Sinclair Basic question but... Is there any known machine code utility that allows something similar to PRINT AT that can be called fr…

    Not strictly a Sinclair Basic question but... Is there any ... AT that can be called from Basic but uses 64 or maybe ... />
    I'm creating small Basic programs that allow me to ... that's easy to call from Basic? Thanks!
    zxbruno zxbruno October 2009 Sinclair Miscellaneous
  • 128k RAM paging from BASICI'd always thought that OUT had to be used to page RAM, which from BASIC would be an "OUT 32765,ddd" command, although I don't know if just doing tha…

    ... used to page RAM, which from BASIC would be an "OUT 32765 ...
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • Switch 128kb banks from Basichello! Please help to [U]correct[/U] switch 128kb pages from Basic. So, I remember, need to do: out 32765,17 e.t.c but before, i must to change some…

    ... ]correct[/U] switch 128kb pages from Basic.
    So, I remember, need ...
    gun gun July 2014 Sinclair Basic
  • How do I avoid BASIC becoming corrupted on returning from a M/C routine?I'm having trouble with my BASIC program becoming corrupted on returning from a m/c routine which sets all the registers (including the shadow regist…

    ... trouble with my BASIC program becoming corrupted on returning from a m ... calling a m/c routine from BASIC, and reload them before returning ...
    trellis trellis May 2003 Sinclair Basic
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... of the above mentioned operations from BASIC. Syntax is explained in the ... /> ld bc,15
    ld hl,OPTIONS+14
    cpdr ;check ...
    ld hl,OPCODES
    add hl,bc
    add hl,bc
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... up to +3e. Called from BASIC with RANDOMIZE n+USR ... ERR_SP)
    LD SP, HL ; 249 ;from m/c stack
    ... POP BC ; 193
    POP HL ; 225
    POP DE ; ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Restore HL' to?It is probably a simple question, but it's been escaping me for quite some time now. Is there an 'universal' value you should restore HL' to if your…

    ... is expected to return to BASIC after it has finished execution ... usually what HL' seems to hold whenever stuff gets called from BASIC. However ... snapshot created from my code, the value in HL' seems to ... still seem to return to BASIC without errors.

    ...
    Hikaru Hikaru May 2012 Development
  • multi-scroll m/c subroutine for BASICArising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. whe…

    Arising from recent posts, here's a scrolling routine that will manage multiple left/right scrollings for any (sensible) line width or step; (ie. where width is
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • Getting PC into HLHello, here's a conundrum for you... Is there a way to obtain the value of the PC register (say into HL) without using absolute addressing such as C…

    ... the PC register (say into HL) without using absolute addressing such ... moment except that when calling from BASIC the BC register appears to ... in it (well, in 48K BASIC at least). Still this is ...
    BloodBaz BloodBaz February 2013 Sinclair Miscellaneous
  • Loading basic from basic?Hi Guys, 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" if inkey$…

    ... just get "c nonsense in basic"

    if inkey$ = "1 ... .cde" code will load fine from a basic listing.

    Can ...
    gazj82 gazj82 June 2013 Sinclair Basic
  • display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…

    ... :

    display file addressing (HL):
    H =010ssppp, ss=segment ... easily (although rather more sedately) from BASIC as from assembler.

    The ... quicker BASIC version which minimised the number of function calls by setting ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Passing parameter from BASIC to assembler routineWas there a "clean" way of passing parameter(s) from a BASIC program to an assembler routine? Something like parameterising RANDOMIZE USR call? I fac…

    ... of passing parameter(s) from a BASIC program to an assembler routine ...
    mr.spiv mr.spiv November 2018 Development
  • Extracting the Multiface ROM?Is there an easy way to save the contents of a real Multiface 128 ROM to tape, on a real spectrum, for the purposes of transferring it to PC for emul…

    ... />
    So, I would sugest setting up a machine code routine ... be something like:

    From BASIC, CLEAR 32767


    LB BC,8192
    LD HL,0
    LD DE,32768 ...
    RET

    Then, from BASIC, SAVE "mf128" CODE 32768,8192 ...
    DEATH DEATH June 2006 Hardware
  • Minigame Compo 2007Hi there, also this year, there'll be a minigame competition, open to all 8-bit computers and consoles. It consists on writing games whose size (…

    ... can be placed directly in BASIC line number and length -> ... which are occupied by BASIC LINE NUMBER and BASIC LINE LENGTH
    HL) from the right side
    ; once ... of byte
    ;
    ; the setting of CY==1 for the ...
    Fikee Fikee January 2008 Development
  • Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …

    ... the colours.

    The setting must be 4x4.
    During ...
    POP DE
    POP HL
    LD SP,IX ; IX ... = set before
    PUSH HL
    PUSH DE
    PUSH ... well.

    The call from BASIC would be:

    RANDOMIZE ...
    Dr BEEP Dr BEEP May 2009 Development
  • Hi Res Print Routine neededHas anyone seen code for a print routine with pixel accuracy? That is print(y,x,CHAR) that allows 0 < y < 192 and 0 < x < 255 - that takes a charact…

    ... will end up being called from Sinclair Basic. They will be functions ... and or subroutines for ZX BASIC - and that really means ... 23606 above
    ; or by setting HL directly with the address of ... /> ;Address if we've jumped from one Character Line to another ...
    Turkwel Turkwel June 2010 Development
  • Decimals!Quick couple of (probably very silly) questions, folks... If I have an input command in a program asking "How many potatoes do you want to buy from …

    ... LINE-NEW
    push hl
    LD HL,(23621) ;PPC = current ... setting the return line & statement to jump back to a BASIC ... routine, from where the error handling ... so that can be managed from BASIC as well if desired.
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... , and the setting up channels code from the page you ... channel 7 ('T') for priting from basic, etc
    ;60 bytes ... /> rr (hl)
    inc hl
    rr (hl)
    inc hl
    ...
    uglifruit uglifruit August 2012 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…

    ... though, as it takes some setting up to call, but it ... buffer (first entry initialised)
    HL = Address of filename (wildcards ... /> Always:
    C DE HL IX corrupt
    All other ... [CODE]Calling +3DOS from BASIC

    When BASIC's USR function is ...
    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.

    ... the GO TO routine after setting up appropriately.

    MCCONT: push hl
    LD HL,(23621) ;save PPC ... /> LD HL,9000 ;line number of BASIC error handler< ... enable the trap from BASIC, save the address from the stack ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • help with sprites from SevenUpHas anybody got source for a short m/c rountine that can send sprites designed in SevenUp to the screen or to a dummy screen? A long time ago, I wor…

    ... planning to use the routine from basic.
    mulder mulder April 2004 Development
  • Print routine for BASIC (or BASin)For anyone interested there's a crappy binary here to print characters from BASIC at pixel positions. Import the binary at 60000, USR 60000 to initia…

    ... binary here to print characters from BASIC at pixel positions. Import the ...
    Woody Woody October 2006 Sinclair Basic
  • The BASIC ISRFirst of all, excuse me if my blatant ignorance about this topic makes me write some nonsense :) The thing is that I'm finishing a game in mixed BAS…

    ... in mixed BASIC and Compiled BASIC (the pure BASIC part is ... and forth, the Compiled BASIC part is the game itself ... the music file. Playing it from BASIC is easy:

    ... ) - I know that BASIC has a ISR which is ... to hook it to the BASIC ISR.

    ...
    na_th_an na_th_an November 2006 Sinclair Basic
  • 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...? …

    ... drumfu.com
    ;
    ; From BASIC invoke with:
    ;
    ; ... basic address
    push hl
    exx
    ;
    ld hl ... detectrom ;
    ;
    pop hl ; restore error return
    ld ... ; restore return to basic address
    pop hl
    exx
    jp jp February 2008 Hardware
  • Saving a complete SCREEN$ in BASICI'm trying to save a SCREEN$ to a tape file (basically the original data is in a .tzx file that I'm trying to save in a .tap format) but the problem …

    ... whenever I try to save from BASIC, the "Start tape and press ...
    Arjun Arjun April 2008 Sinclair Miscellaneous
<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
setting 4.5K 5.2K
hl 6.2K 48K
from 169.9K 237.3K
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…
  • 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…
  • How do I avoid BASIC becoming corrupted on returning from a M/C routine?I'm having trouble with my BASIC program becoming corrupted on returning from a m/c routine which sets all the registers (including the shadow regist…
  • Detecting TR-DOS from BASICIs there a simple (or contrived :D ) way to detect the presence of a TR-DOS/Betadisk interface from BASIC?<br /> <br /> For fairly obvious reasons th…
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this:<br /> PRINT USR xxxxx, arg1,…
  • (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…
  • Looking for an extended BASIC graphics routine from mid- to late-80sHello all,<br /> <br /> This is my first post here so please go easy. This is basically a cut-and-paste job from comp.sys.sinclair where I've had no …
  • ML routines from BASICCan anyone tell me which registers should be saved and restored when calling a ML routine from BASIC?<br /> <br /> How can one know which registers a…

Related Searches

  • save screen from basic
  • nmi instruction from basic
  • nmi from basic
  • return to basic hl
  • loading basic from assembly
  • switch 128kb banks from basic
  • 128k page memory from basic
  • loading basic from code
  • change ram from basic
  • delete basic program from machine code
  • to page from basic
  • load code from basic in emulator
  • basic from machine code
  • run basic program from machine code
  • pass variables from basic to machine code
  • tell which model from basic
  • modify registers from basic
  • switch to 48k basic from 128k
  • detect 128k from basic
  • rst 16 from basic

Copyright © 2024 World of Spectrum