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.012s
<1234567…34>
  • that "listing variables during runtime" thingWell, I did eventually finish this, but with my meds playing up I don't have much time each day that I can spend at the computer, so it's taken rathe…

    ... - the improved SCREEN$ routine assembler listing:
    [url]http:// ... r & k and BC=ScrDol0 prior to the call ... Part the 4th - the streamlined print routine assembler listing:
    [url]http ... 5th - the relocation routine assembler listing:
    [url]http ...
    Battle Bunny Battle Bunny November 2013 Sinclair Basic
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ... has a fairly user-friendly assembler and you can test your ... ;
    ld c,a ;load bc with a
    push af ... a bit
    call 6683 ;print bc
    ld a,13 ;
    rst 10h ;print Return
    pop af ;get ...
    xyzzy xyzzy January 2010 Development
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ... br /> ld c,a ;load bc with a
    push af ... bit
    call 6683 ;print bc
    ld a,13 ... ;
    rst 10h ;print Return
    pop af ; ... doesn't destroy the BC pair? If so, ... dealing with low level skuzzy assembler :confused:

    ...
    xyzzy xyzzy January 2010 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... ROM does in $203c ;PR_STRING "print BC characters from DE". The character ... TO 164
    20 PRINT AT 21,0;CHR$ c ... $: NEXT y
    55 PRINT AT 21,0;" ";AT 8 ... +1) THEN PLOT x,y: PRINT x;",";y;" ";
    80 ... /> I'll knock up an assembler routine to use the data ...
    Battle Bunny Battle Bunny February 2014 Development
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt) where, at the time: mcworkspac…

    ... with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt ... $,m,t)=m, and then print bc, it returns 65368.
    Battle Bunny Battle Bunny July 2010 Sinclair Basic
  • 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…

    ... LET bc=0: PRINT bc;"=";: PRINT ,FN b$(bc,10,2,8):
    LET bc=bc+1 ... 0011000000111001) then:
    [code]
    PRINT FN b$(FN h(12345 ... the reverse:
    [code]
    PRINT FN b$(00110000,2,10 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ... />
    ld c,a ;load bc with a
    push af ... a bit
    call 6683 ;print bc
    ld a,13 ;
    rst 10h ;print Return
    pop af ;get ... 6683 doesn't destroy the BC pair? If so, then you ...
    Chris Pile Chris Pile January 2010 Development
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ...
    ld c,a ;load bc with a
    push af ... a bit
    call #2f86 ;print bc, also set B=0
    rst 10h ;print Return
    pop af ;get ...
    Dr BEEP Dr BEEP January 2010 Development
  • Printer Printing Problem (assembler)I've a program that outputs to the lower screen at various places, using a combination of calls to RST $10 plus OUT-NUM-1 and PR-STRING. It also call…

    ... $10
    ret
    ...
    ;print BC 3 digits padded
    PRIN3N ... hl,bc
    jr c,PRINTN ;BC>=100
    push bc
    rst $10
    pop bc
    ld hl,-10
    Battle Bunny Battle Bunny November 2010 Development
  • Printer Printing Problem (assembler)I've a program that outputs to the lower screen at various places, using a combination of calls to RST $10 plus OUT-NUM-1 and PR-STRING. It also call…

    ... $10
    ret
    ...
    ;print BC 3 digits padded
    PRIN3N ... hl,bc
    jr c,PRINTN ;BC>=100
    push bc
    rst $10
    pop bc
    ld hl,-10
    Dr BEEP Dr BEEP November 2010 Development
  • Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …

    ... only use the ROM print BC routine to print values less than 10000 ...
    Turkwel Turkwel June 2011 Development
  • Banked memory running slower?I've just compiled a TAP which includes bank6, it loads ok, but the routines that are paged in run slightly slower. The Z80 snapshot has no such pro…

    ... do something like PRINT USR 32768, the register pair BC gets loaded ... it returns, the contents of BC is returned as the result ... put your counter result in BC, you can see the result ... , if you like, 'LET BC = USR 32768 : PRINT BC'.

    Another trick ...
    joefish joefish November 2014 Development
  • Bored of the Rings coded messageI was browsing [url="https://tcrf.net/"]The Cutting Room Floor[/url] recently and stumbled upon the entry for [url="https://tcrf.net/Bored_of_the_Rin…

    ... ,MESSAGE
    call $203c ;PR_STRING print BC characters from DE

    call $203c ;PR_STRING print BC characters from DE
    NOMATCH ...
    Battle Bunny Battle Bunny June 2016 Games
  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…

    ... br /> - Puts nn in BC.
    - Execute the machine ... of BC.

    So, when you use PRINT ... will return safely (and print the number 65368). ... will print 65367 (you're executing a dec bc ... />
    - PRINT USR nn will print BC on screen, ruining your ...
    Zup Zup October 2016 Sinclair Basic
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... br /> ; make tasm understand other assembler instructions
    #DEFINE DEFB .BYTE ... br /> PUSH AF
    PUSH BC
    PUSH HL
    ... />

    ; PCHAR

    ; PRINT A 1*8 CHAR TO ...
    robpearmain robpearmain September 2004 Development
  • Smooth Masked Sprites using fast page flip on 48k Part 2Ok, After all the suggestions in Part 1, which were all excellent (Thankyou), I opted on the following: I have 2 x 6k Offscreen areas (Yes, that's …

    ... br /> ; make tasm understand other assembler instructions
    #DEFINE DEFB .BYTE ...
    INC B
    PUSH BC
    CALL WRITECHAR
    POP ... />

    ; PCHAR

    ; PRINT A 1*8 CHAR TO ...
    robpearmain robpearmain September 2004 Development
  • PRINT AT in assembler Hello everyone, I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC programming, bu…

    ... (perhaps not) simple things like print a single character to the ... that to achive the BASIC PRINT AT-operation the instructions would ... ", but the X would only print this number of new lines ...
    Rickard Rickard July 2005 Development
  • Problem with SPIN assemblerCan anybody tell me why the following machine code program doesn't assemble in the SPIN assembler? ; my first machine code program ld bc, 5 ret Any…

    ... 't assemble in the SPIN assembler?

    ; my first machine ... code program
    ld bc, 5
    ret

    assembler instructions I'd be grateful ...
    BigBadMick BigBadMick January 2007 Development
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... is that the ZX Spin assembler tells me 'Warning. Symbol ... br /> ld (hl),a ;print road left side
    ...
    ld (hl),a ;print left side on line1
    print
    ld (de),a ;??print a blank ... ready to print top line road left
    pop bc ;recover ...
    bigjon bigjon February 2008 Development
  • New for 2009 - mc onelinersI found the limit of one line and one screen's worth of program really useful in (re-)learning BASIC, so I've decided to carry the format over into m…

    ... is the ZX Spin assembler source code:
    ... djnz fillscreen
    ld bc,0 ;initialise score
    ... moveright
    ld bc,32766 ;read keyboard space ... posn
    xor a ;print new road
    ld ... return score in BC
    gameover
    pop bc ;retrieve score ...
    bigjon bigjon December 2008 Development
  • BASin Assembler suggestionsHi Dunny. According to your former request here goes a few suggestions. Been playing around with the Assembler and I'm glad I did. Quite nice indeed…

    ... /> Been playing around with the Assembler and I'm glad I ... related note, why are the BC and DE labels bold?)[/LIST]
    rahtgaz rahtgaz January 2009 Emulators
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... so, go to GAMEOVER.
    ;print car
    ;scroll road
    When the Spin assembler gets to the instruction 'ret ... at GAMEOVER insert line21, 'push bc; save score'. Replace line ...
    gameover
    pop bc ;retrieve score
    pop hl ...
    bigjon bigjon November 2009 Development
  • What Z80 development tools do you use? What books?Hi. I've been meaning to do it for over 25 years, but.. better late than never :) I'm starting to learn machine code and am trying to get a developme…

    ... days, Zeus Assembler, then moved onto the assembler in BASin ... /game/z80asm"]Z80 PC Assembler or z80asm[/URL] which ... /> ld bc,eostr-string ; length of string to print
    ... call 8252 ; print our string
    xyzzy xyzzy December 2009 Development
  • Whi different result with Spectrum +3 ?The followed code 10 FOR n=23296 TO 23299 20 READ a: POKE n,a 30 NEXT n 40 DATA 1,127,106,201 50 PRINT USR 23296 causes that the spectrum 48k show…

    ... ,127,106,201
    50 PRINT USR 23296

    causes ... screen. Why ?

    the assembler code of this c/m ... the follow.

    LD BC,27263
    RET

    arfgh arfgh May 2010 Sinclair Basic
  • C/M Why different result with Spectrum +3 ?The followed code 10 FOR n=23296 TO 23299 20 READ a: POKE n,a 30 NEXT n 40 DATA 1,127,106,201 50 PRINT USR 23296 causes that the spectrum 48k show…

    ... ,127,106,201
    50 PRINT USR 23296

    causes ... screen. Why ?

    the assembler code of this c/m ... the follow.

    LD BC,27263
    RET

    arfgh arfgh May 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…

    ... compiles fine using the ZXSpin assembler, and should be relocatable, ... address back
    call pm_do_it ; print the message
    ret

    ; -----------------------------------------------
    delay: ld bc,32768
    ld a,0 ...
    polomint polomint September 2011 Development
  • Using the ROMs PRINT routineI really am starting from scratch again it seems, but how do you utilize the ROM routine to print characters, I think you point te BC register to an …

    ... routine to print characters, I think you point te BC register to ...
    daveysludge daveysludge January 2012 Development
  • What's wrong with this code ?OK, working my way through Jonathan Cauldwells 'How To' tome and I can't get the following to run in either spin or basin. ( iused the assembler in b…

    ... spin or basin. ( iused the assembler in both and i tried ... new coordinates.

    ld bc,63486 ; keyboard row 1-5 ... />
    ; Show player at current print position.

    splayr ld ...
    Saboteur Saboteur May 2012 Development
  • PRINT a numerical value i.e. the scoreHow do you fo about printing a numerical value using the print routine in the ROM? For instance I have a value 0-255 and want to PRINT the result at…

    ... a numerical value using the print routine in the ROM?
    PRINT the result at say 0 ... , (address of text to print)
    ld bc, (length of text to ... print)
    call 8252

    daveysludge daveysludge August 2012 Development
  • Ideas for speeding up this BASIC routine?This loop can take up to 2 minutes to run, depending upon the content of the screen being scanned, about 70% of that time being taken up by lines 105…

    ... (other than rewriting them in assembler)? Don't worry about the ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
<1234567…34>

Latest Posts

  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Happy 40th Birthday to the Amstrad CPC464!
    Your Spec-chum on 7:28AM
  • Your Favorite Magazine Cover Tapes.
    Paradigm Shifter on 1:28AM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11
  • Footballer of the year - translated version
    firelord on April 11

HitBox

Word Docs Hits
print 8.5K 20.4K
bc 3.6K 14K
assembler 4.6K 7K

Related Threads

  • PRINT AT in assemblerHello everyone,<br /> <br /> I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC prog…
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code?<br /> <br /> ORG 60000<br /> LOAD 60000<br /> <br …
  • Which emulator and assembler?Hi,<br /> <br /> I am looking to learn z80 assembly language and I feel the best option is a spectrum emulator and an assembler. Can anybody recomme…
  • Books on Programming (ZX Assembler )Before you ask I trawl eBay on a daily/hourly basis.<br /> <br /> Any books in VGC wanted on programming games for the ZX Spectrum 48K. No creased, d…
  • Tornado AssemblerTornado Assembler is not working. What's wrong with it? It says Nonsense in BASIC or something like this. (dwnldd from this site, of course)
  • How to print with colour using DiscipleHi!<br /> <br /> I was wondering if there is any way of printing in colour using the Disciple. I am using an Epson Stylus 600 Printer with one of my …
  • BC 's Quest For Tireswhen playing this game you can only use keyboard right?.WRONG.if you press the letter "p" while the game has started(paused and waiting for input)a c…
  • Z80 AssemblerSome of you may know that I'm working on a Z80 assembler. I thought I'd start a thread so I can see what people think and what they might want to see…
  • BC Bill does this game work with a emulator?Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
  • Sinclair User: Blue Print Double DragonI'm not sure what issue the Blue Print of Double Dragon appeared, I think it was issue 78 (September 88)<br /> <br /> Even a scan would do. Cheers

Related Searches

  • print a char in asm
  • hello world in assembler
  • assembler
  • music in assembler
  • zx assembler
  • print variables
  • macro assembler
  • cross assembler
  • spin assembler
  • assembler local labels
  • spin assembler directives
  • ld bc eostr string
  • print on border
  • print usr bc
  • print to screen assembler
  • print assembler
  • print 16 bit number assembler
  • print large assembler
  • print out z80 assembler
  • print lower two lines assembler

Copyright © 2024 World of Spectrum