Search found 521 matches
- Fri May 10, 2024 2:09 pm
- Forum: Programming
- Topic: printing to the screen without using rom calls
- Replies: 7
- Views: 166
- Fri May 10, 2024 1:23 pm
- Forum: Programming
- Topic: printing to the screen without using rom calls
- Replies: 7
- Views: 166
printing to the screen without using rom calls
how do i do this? ive had a look on goggle but cant find any routines. im guessing this will be faster. any help will be welcome.
- Tue Apr 30, 2024 2:59 pm
- Forum: Programming
- Topic: problems with sjasm
- Replies: 4
- Views: 299
Re: problems with sjasm
I can't help you directly with your case but may have some hint. Personally I do it in a different way. I always complile a single file which has in its code "pointers" to more files. There are instructions like INCLUDE or INCBIN to achieve it like: INCLUDE <Graphics.asm> INCLUDE <Menu.as...
- Tue Apr 30, 2024 2:39 pm
- Forum: Programming
- Topic: problems with sjasm
- Replies: 4
- Views: 299
problems with sjasm
im trying to compile the filled vector routine from the l break into program website. unfortunately it compiles down to only 1k which i think is too small. i think its compiling the wrong file. heres the syntax that im using sjasmplus --raw=out.bin b.txt c.txt v.txt https://github.com/breakintoprogr...
- Tue Apr 30, 2024 1:39 pm
- Forum: Programming
- Topic: bug in z80 library routines website code?
- Replies: 2
- Views: 128
Re: bug in z80 library routines website code?
ahh ok thanksMustardTiger wrote: ↑Tue Apr 30, 2024 1:34 pm It's a macro, from this file https://github.com/breakintoprogram/lib ... macros.z80
- Tue Apr 30, 2024 1:33 pm
- Forum: Programming
- Topic: bug in z80 library routines website code?
- Replies: 2
- Views: 128
bug in z80 library routines website code?
it gives me the instruction add_de_a but sjasm doesnt recognize it. what is it actually supposed to be? its from this routine line 41 and 62
https://github.com/breakintoprogram/lib ... ib/gui.z80
https://github.com/breakintoprogram/lib ... ib/gui.z80
- Mon Apr 29, 2024 3:20 am
- Forum: Programming
- Topic: how do print to the screen using an exact pixel location in code?
- Replies: 5
- Views: 195
Re: how do print to the screen using an exact pixel location in code?
I wrote this with some extra comments thrown in was going to maybe do a tutorial for intermediate Z80 stuff but it will do what you want (draw an 8x8 sprite anywhere on the screen*) * Except if it's off the edges of the screen. ORG #8000 SCRBASE EQU #4000 UNROLL_Sprite8x8a EQU 1 TIMING EQU 1 DELAYA...
- Mon Apr 29, 2024 2:14 am
- Forum: Programming
- Topic: how do print to the screen using an exact pixel location in code?
- Replies: 5
- Views: 195
how do print to the screen using an exact pixel location in code?
like being able to print a character at 200,100 for example? and then move it pixel by pixel if i want. im sure this is fairly easy as this is the way the spectrum displays characters anyway. and im sure ive read how to do it somewhere when i was learning assembler. any ideas? ive googled it but no ...
- Sun Apr 28, 2024 1:44 pm
- Forum: Showcase your work!
- Topic: my new site
- Replies: 0
- Views: 158
- Mon Mar 18, 2024 3:56 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
Isn't xpos same as Xcoordinate? You haven't shown where you defined xpos. You probably want to remove that and replace the LD A, (xpos) with LD A, (Xcoordinate) instead. EDIT: Ok I see where you define xpos... you don't update that though only Xcoordinate. EDIT2: You kind of update it but you are u...
- Mon Mar 18, 2024 3:40 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
Ok well don't do that when you are learning. It's an advanced optimisation technique which makes the code harder to understand and debug. I can't see any need for it here either, keyboard reading is negligible jiffyswise compared to drawing stuff and ting. Always use a label anyway... ok, ive chang...
- Mon Mar 18, 2024 3:29 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
Self modifying code? You sound like you're only learning, I'd knock that on the head for a good while ;) If you wanted to modify the operand it would be at the opcode + 1 address anyway? Never use a hardcoded address anyway, you have an assembler to work that stuff out for you. yes, thats what i me...
- Mon Mar 18, 2024 3:22 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
Not running isn't very helpful ;) Say how it does not work. Did it compile? If you are using an emulator use the debugger to put breakpoints on the code paths and step through. My code looks ok to me but it is way past beer o'clock so disclaimers apply. EDIT: This looks a bit dodgy ld (30069),a whe...
- Mon Mar 18, 2024 3:12 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
Easiest way is to check the Xcoordinate before you decrement it and if it is 0 skip writing it back. You can use ld a, (Xcoordinate) or a ; same as cp 0 but faster and smaller jr z, .skipmoveleft dec a ld (Xcoordinate), a .skipmoveleft for that EDIT: So with your code DecreaseX ld bc, Key2 ; Bit 0 ...
- Mon Mar 18, 2024 2:40 am
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
well u know what im going to ask u now dont u? how do i get it to move the character the other way? heres what i have so far but it doesnt work. i tried to adapt it. im using the x key i did try swapping the key and key2 labels around and reads the key fine... ; ; ROM routine addresses ; ROM_CLS EQU...
- Sun Mar 17, 2024 5:30 pm
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
Re: what would this be equivilent to in assembler?
There's lots of ways depending on whether X is in a register or memory location, whether it can go larger than 255, whether you want it to wrap or stop at a certain max value, whether you want to do something with X after increasing it, etc. But something like this is a good start: Key.SpSsMNB equ ...
- Sun Mar 17, 2024 2:22 pm
- Forum: Programming
- Topic: what would this be equivilent to in assembler?
- Replies: 33
- Views: 1067
what would this be equivilent to in assembler?
if inkeys$="m" then x=x+1
i understand the keyboard matrix is read differently in assembler/m code
i understand the keyboard matrix is read differently in assembler/m code
- Sat Dec 30, 2023 12:04 pm
- Forum: Sinclair Miscellaneous
- Topic: any idea if this book cover is a real game?
- Replies: 1
- Views: 232
- Sat Dec 30, 2023 11:43 am
- Forum: Games/Software
- Topic: where do i put type ins that i have typed in?
- Replies: 2
- Views: 222
Re: where do i put type ins that i have typed in?
Hi @777, They are all already typed in. https://spectrumcomputing.co.uk/entry/2000018/Book/Sixty_Programs_for_the_Sinclair_ZX_Spectrum If you type in something that is not already in the archive you can either upload to Dropbox or similar and share in the preservation section, or use the upload for...
- Sat Dec 30, 2023 2:07 am
- Forum: Games/Software
- Topic: where do i put type ins that i have typed in?
- Replies: 2
- Views: 222
where do i put type ins that i have typed in?
im using 60 programs for that sinclair zx spectrum and have just typed in invaders. i had a look on google and couldnt see it anywhere. also i would like help to debug this one as there are a few things that arent quite right.
- Fri Sep 08, 2023 1:37 am
- Forum: Games/Software
- Topic: C.S.C.G.C 2023 is open for entries
- Replies: 475
- Views: 12900
- Thu Sep 07, 2023 1:11 am
- Forum: Games/Software
- Topic: C.S.C.G.C 2023 is open for entries
- Replies: 475
- Views: 12900
- Sun Aug 13, 2023 8:55 pm
- Forum: Design/Ideas
- Topic: decolourizing games
- Replies: 53
- Views: 2393
Re: decolourizing games
Certainly not. And you chose a game with really good usage of colour. Maybe something with a very bad colour clash would benefit from removing the colour but I still doubt it. And there is also an easy trick to get your result - use black and white TV :) a better example maybe? https://i.postimg.cc...
- Sun Aug 13, 2023 4:44 pm
- Forum: Design/Ideas
- Topic: decolourizing games
- Replies: 53
- Views: 2393
- Sun Aug 13, 2023 2:14 pm
- Forum: Design/Ideas
- Topic: decolourizing games
- Replies: 53
- Views: 2393