-
MCODE problem...Hi Folks, Trying to write a simple machine code program to hatch the screen. So far I have the following but even this is not working - it does not…
... finding a balance between speed, memory useage and understanding of the ...
ld de,#4001
push hl
ld (hl),#aa ... -
FN nesting error?While playing with FN functions that call assembly, I've found something weird. Check out this code: [code]10 DEF FN f(a,b)=a+b 20 PRINT FN f(FN f(…
... /> push ix
push de
push hl
push bc ...
- Allocate stack memory by decreasing SP so that ... for allocating memory.
- Push to the ... -
128k multicolour graphics...ok over the years I've been a fan of multicolour graphics on zx spectrum, an I clearly get that on a 48k the (8x1@2)multicolour limit stands at 18cha…
It's tricky. The POP/PUSH or LD/PUSH method works because you ... then PUSH the data to successive memory addresses. If you ... as long as the screen memory itself and custom-written. It ... -
Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …
... The spectrum is purely a memory mapped pixel display and drawing ... involves POKEing eight bytes to memory per letter, each byte ... data address
push bc
push hl
... />
join:
push hl ; save display address so ... -
Creating a new game - AssemblySo... finally I?m studying Assembly Z80... after 36 years. :) Well... it?s sooooooooooooo hard to make a game using Assembly? I bought a book (Spectr…
... as a loop counter, just PUSH it onto the stack before ... />
You can of course PUSH a number from one register ... of registers, or reserve some memory and label it up with ... -
Creating a new game - AssemblySo... finally I?m studying Assembly Z80... after 36 years. :) Well... it?s sooooooooooooo hard to make a game using Assembly? I bought a book (Spectr…
... ) Using PUSH and POP to copy data around in memory, as it ... -
Creating a new game - AssemblySo... finally I?m studying Assembly Z80... after 36 years. :) Well... it?s sooooooooooooo hard to make a game using Assembly? I bought a book (Spectr…
... ) Using PUSH and POP to copy data around in memory, as it ... -
z88dk sticky?I've just tried to PM Alcoholics Anonymous and couldn't because "Alcoholics Anonymous has exceeded their stored private messages quota and cannot acc…
... allocated from a pool of memory whose size can be ... open files. All stdio memory requirements will be satisfied through ...
* a selectable push or pull model for keyboards ... . Push corresponds to interrupt driven keypresses ... -
Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…
... move the screen buffer from memory to where you can see ... which use the stack. Using PUSH to write into the screen ... contention), LDI takes 16, and PUSH writes two bytes in just ... -
Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…
[QUOTE=Metalbrain;594803]Using PUSH to write into the screen ... .[/QUOTE]
Not quite. The PUSH goes in reverse order over ... in one or the other memory address to allow for the ... -
Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…
The reason PUSH/POP is so preferable for ... same things multiple times with PUSH.
With LDI, or ... (eating up a lot of memory) to realise even the smallest ... -
Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…
... /> But the memory access pattern is not the same... push has two ... cycles. Maybe the writes in push only has one of them ... -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
... find somewhere (preferably in high memory) to put the stack. And ... to 0 (so the first PUSH goes to 65534) or to ... plugged in that grabs extra memory space and moves the system ... -
Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…
*waits for someone to suggest an unrolled POP/PUSH list to do it 20% faster but take up more memory than the data it's trying to copy* :roll: :lol: -
Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…
... /PUSH list to do it 20% faster but take up more memory ... ; 6
push bc ; 11
push de ; 11
push af ; 11 ... ; 6
push bc ; 11
push de ; 11
push af ; 11 ... -
Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…
[QUOTE=joefish;595817]*waits for someone to suggest an unrolled POP/PUSH list to do it 20% faster but take up more memory than the data it's trying to copy* :roll: :lol:[/QUOTE]
You shouldn't joke about such things... -
Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…
[QUOTE=joefish;595817]*waits for someone to suggest an unrolled POP/PUSH list to do it 20% faster but take up more memory than the data it's trying to copy* :roll: :lol:[/QUOTE]
Chev doesn't post on WoS anymore :lol:
;-) -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
... find somewhere (preferably in high memory) to put the stack. And ... to 0 (so the first PUSH goes to 65534) or to ... plugged in that grabs extra memory space and moves the system ... -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
... subroutines and all of them PUSH all the registers etc. etc ... stopping you from using the memory all the way down to ... -
Pixelwise scrolling sideways - how many ways to do it?Not that I need to, but I've been wondering if there's a good way to do this that I haven't considered. Scrolling [B]pixelwise [/B]vertically is "ea…
... tiles and can use POP/PUSH, the former takes the lead ... only from the amount of memory saved.
I guess ... -
Faster CLS...Hi Folks, Looking at the CLS command in the Spectrum ROM disassembly it seems rather complex. Does anyone know of a simpler/quicker routine that wi…
... /> loop1
PUSH HL
PUSH HL
...
.. (PUSH HL 16 times ... /> loop2
PUSH HL
PUSH HL
...
.. (PUSH HL 16 times ... white ink on black.
Memory is always a trade-off ... -
Faster CLS...Hi Folks, Looking at the CLS command in the Spectrum ROM disassembly it seems rather complex. Does anyone know of a simpler/quicker routine that wi…
[QUOTE=joefish;596495]Memory is always a trade-off ... /> push hl
push hl
push hl
push hl
push hl
push ... -
Faster CLS...Hi Folks, Looking at the CLS command in the Spectrum ROM disassembly it seems rather complex. Does anyone know of a simpler/quicker routine that wi…
... />
The PUSH method works backwards through screen memory, so as the ... is being drawn downwards, the memory is being cleared upwards, so ... -
Pixelwise scrolling sideways - how many ways to do it?Not that I need to, but I've been wondering if there's a good way to do this that I haven't considered. Scrolling [B]pixelwise [/B]vertically is "ea…
... tiles and can use POP/PUSH, the former takes the lead ... only from the amount of memory saved.
I guess ... lines below are done using PUSH since they're just a ... parallax is also drawn using PUSH but only scrolled every other ... -
How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…
You can decide how much memory you need for the stack, ... the limit in memory (remembering that push descends through memory). Check this magic ... at the extent of the memory allocated for dynamic data, and ... -
How many full time users of Linux on the forum?How many of you on WOS forum use Linux as a permanent OS replacement (excluding casual duel boot users who also duel boot Windows?). I use Linux Min…
Thankfully Linux's memory management is so much more ... !)
It was the push from XP to Windows 7 ... -
LZ77 en/decodingI've written an LZ77 en/decoding routine as I couldn't find one around for the Spectrum. Initially I'm just doing it in BASIC to get the logic right.…
... of compress.
[CODE]PUSH HL
LD HL,$0000 ... /> HALT
CALL compress
PUSH HL
LD HL,($5C78 ... of RLD rotate bit in memory (IS DESTRUCTIVE, need restore ... -
Exilei\'m sure this has been brought up before but couldn't find a thread in 'New Game Ideas'. Why did the Spectrum never get a port of the BBC game Exile…
[QUOTE=Fikee;613293]PUSH/POP copy with bank switch ... know the grab from the memory is around here somewhere but ... -
Shadow registers.I assume it's faster to transfer the registers to the shadow registers rather than using the stack? Let's say that I want to temporarily preserve the…
... , the same as a NOP. PUSH and POP take longer at ... memory isn't in contention. Or add on another four for PUSH ... using it to actually address memory, the IX/IY instructions only ... or write an address in memory, there's a bit longer ... -
Shadow registers.I assume it's faster to transfer the registers to the shadow registers rather than using the stack? Let's say that I want to temporarily preserve the…
... , the same as a NOP. PUSH and POP take longer at ... memory isn't in contention. Or add on another four for PUSH ... using it to actually address memory, the IX/IY instructions only ... or write an address in memory, there's a bit longer ...

