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.064s
<1234567…34>
  • 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 ... $C000) and then "POKE 23388,16+n" (being the BANK_M system ... means that an "OUT 32765,16+n" would do the same ...
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM : ;print a long string "help me" start .org 32000 ld a,2 call 5633…

    ... ,(de)
    inc de
    RST 16
    jr loop
    data ... : unrecognized argument. which is the RST 16

    Is it something ...
    Steve(spt) Steve(spt) April 2004 Development
  • 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
  • Using RST 16 and udg flickerHi there! I'm using UDGs and RST 16 to make a simple canyon bomber game. I've got the game mechanics working ( finally ) but now I'd like to make …

    ... /> I'm using UDGs and RST 16 to make a simple canyon ...
    Atari_Jetman Atari_Jetman October 2012 Development
  • 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
  • Total amount of memory on a Speccy ?I wonder............ The C64 (excuse me for saying that name in here. I'll hereby name it just "it") has 64k, while only 38k, or so, is available f…

    ... example, the BASIC interpreter itself or using routines like RST 16 from machine code ...
    Winston Winston March 2007 Hardware
  • Usr 0 ?I'm not sure I've ever seen this explained before, but why do some programs (only demos, as far as I can see, so far) need USR 0 mode when run on a 1…

    ... machine-code block located separately from the main demo code (either ... and doing an OUT 32765,16 from Basic instead...
    gasman gasman December 2008 Sinclair Miscellaneous
  • 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
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... programs you make are more BASIC-based (PRINT AT) and therefore ... tricks.
    Reading a value from a table in MC
    rst 16 ; with print
    ret ; Back to BASIC

    Dr BEEP Dr BEEP August 2005 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... RET ; back to BASIC

    RST 16
    LD A,B
    RST 16 ...
    Dr BEEP Dr BEEP December 2008 Development
  • An update on ZX BASIC support for the SpectranetOne for zxbruno, I hope :-) So just an example of what now can be done with the network filesystem and BASIC. The following listing is of a program …

    ... with the network filesystem and BASIC. The following listing is of ... this on the Spectrum, using BASIC and streams:

    [code ... ]
    %connect #4,"172.16.0.3",2000
    LIST ... to send data over ethernet from BASIC. You can PRINT # to that ...
    Winston Winston March 2010 Sinclair Basic
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... anyone wants to use it from BASIC
    ret

    ; ... ret z ; so exit
    rst 16 ; print the character
    jr ... defb $bf
    key_pause_pattern: defb 16
    key_quit_port: defb $df
    polomint polomint September 2011 Development
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... of manipulating bit patterns in BASIC was raised recently in ... strings for ease of handling from BASIC, with a little loop to ... to convert 12345 to a 16-digit binary equivalent (which is ... from the original plan of using binary digit character strings in BASIC ...
    Battle Bunny Battle Bunny September 2011 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 ... ;step over +VAL"
    rst $20
    rst $20
    ld bc ... here
    call STAKA
    rst $20 ;step over "
    ret ...
    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 ... /> JR Z, NOGSUB ; 40 16
    DEC SP ; 59 ... ; 217
    DJNZ NXTSUB ; 16 233
    INC B ; 4 ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • 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
  • 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
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ...
    I've done this BASIC version, which follows the original ... do the other three basic arithmetical operations as well.< ...
    100 INPUT "Enter two 16-digit numbers"'
    "in two ... V;TAB 8;X;TAB 16;B;TAB 24;C'
    16;D;TAB 24;E
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • MOVE_M Object Movement Manager for BASICAs moving things around on the screen is usually the slowest part of a game written in BASIC, I've been pottering around with this routine to handle …

    ... To temporarily enable the keyboard from BASIC:
    REM RESTORE USR DOINT ...
    ; exceptions are dealt with from BASIC
    ; object properties are defined ...
    defb $00,$01,$01,$16,$01,$1e,$00,$00,8 ...
    Battle Bunny Battle Bunny September 2013 Sinclair Basic
  • z80 assembly helpEver since I was a child I wanted to program my zx81 then my zx spectrum + 2. However, it was such a mystical beast and I only ever used BASIC not kn…

    ... only ever used BASIC not knowing there ... an asterisk here.
    rst 16 ; display it.
    call ... code for space.
    rst 16 ; delete old asterisk.
    from ld x, (xcoord)?
    rst 16 Why/ ...
    antonyjones101 antonyjones101 September 2015 Development
  • So it occurred to me; "Why bother with going into 48K BASIC when you can just....wrap the machine code calls inside a 'RST #28;DEFW addr:RET'?" Of course, you DO need a small M/C routine to do that, and ta-daaa, here it is: [cod…

    ... ; hide the M/C from BASIC
    Call48 RST #28 ; call a routine ... in the 48-BASIC environment
    DEFW #2DA2 ; unstack BC from the calculator ...
    The_Bert The_Bert September 2016 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
  • Run BASIC program by R. USR xxxxxGuys, please help. Suppose I have BASIC program in my Spectrum 48K starting with line 10. I'd like to start it by RANDOMIZE USR xxxxx. Which paramete…

    ... start BASIC from out MC

    LD A,65
    RST 16 ; PRINT ... A
    JP 8108 ; run BASIC program!
    Dr BEEP Dr BEEP March 2003 Sinclair Miscellaneous
  • Run BASIC program by R. USR xxxxxGuys, please help. Suppose I have BASIC program in my Spectrum 48K starting with line 10. I'd like to start it by RANDOMIZE USR xxxxx. Which paramete…

    ... start BASIC from out MC

    LD A,65
    RST 16 ... ; PRINT A
    JP 8108 ; run BASIC program!< ... Thanks! I want to load basic prog. together with mc ... memory saved) and than run basic.

    I ... a project I started 16 or 17 years ago. ...
    MrShhh MrShhh March 2003 Sinclair Miscellaneous
  • Run BASIC program by R. USR xxxxxGuys, please help. Suppose I have BASIC program in my Spectrum 48K starting with line 10. I'd like to start it by RANDOMIZE USR xxxxx. Which paramete…

    ... start BASIC from out MC

    LD A,65
    RST 16 ; ... PRINT A
    JP 8108 ; run BASIC program!
    Nonsense in BASIC, 0:1

    ... set some parameters before calling BASIC interpreter, to POKE some sys ...
    MrShhh MrShhh March 2003 Sinclair Miscellaneous
<1234567…34>

Latest Posts

  • I bought an accoustic guitar. How do you play it?
    dm_boozefreek on 7:51PM
  • Goodbye Z80
    zx1 on 7:11PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • 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
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
rst 1.2K 2.5K
16 15.1K 22.7K
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…
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…
  • 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…
  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM :<br /> <br /> ;print a long string "help me"<br /> start .org 32000<br…
  • 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…

Related Searches

  • save screen from basic
  • nmi instruction from basic
  • nmi from basic
  • loading basic from assembly
  • rst 16
  • rst 16 registers
  • rst 16 print routine
  • switch 128kb banks from basic
  • 128k page memory from basic
  • loading basic from code
  • change ram from basic
  • delete basic program from machine code
  • rst 16 newline
  • to page from basic
  • rst 16 slow
  • rst 16 fast
  • load code from basic in emulator
  • basic from machine code
  • select 0 from sleep 16 v
  • run basic program from machine code

Copyright © 2024 World of Spectrum