Search found 4 matches

by Stroopwafel
Wed Apr 21, 2021 8:01 am
Forum: General Z80 Programming
Topic: How is LDIR affecting memory?
Replies: 5
Views: 5301

Re: How is LDIR affecting memory?

akuyou wrote: Sun Sep 20, 2020 7:22 am so "LD (DE),(HL)" copies one byte from address HL to address DE
I probably should have read that better. ;-.-
by Stroopwafel
Tue Sep 22, 2020 9:08 am
Forum: General Z80 Programming
Topic: How is LDIR affecting memory?
Replies: 5
Views: 5301

Re: How is LDIR affecting memory?

So, I thought I could test this with this little piece of code: org &8000 LD DE,1 LD (&4000),DE ; load 1 into memory at &4000 LD HL,4000 ; make HL a pointer to &4000 INC HL ; HL now holds &4001 RET After this, HL has changed to &4001, DE holds 1, as does the memory address &a...
by Stroopwafel
Tue Sep 22, 2020 8:34 am
Forum: General Z80 Programming
Topic: How is LDIR affecting memory?
Replies: 5
Views: 5301

Re: How is LDIR affecting memory?

I think you've slightly misread the cheatsheet (unless there's a misprint version out there) The first line should be: LD (DE),(HL) Yes, that must be it. I already understood that (HL) and (DE) are pointers to an address in memory, but I thought that for instance INC HL would differ from INC (HL) i...
by Stroopwafel
Thu Sep 17, 2020 6:40 am
Forum: General Z80 Programming
Topic: How is LDIR affecting memory?
Replies: 5
Views: 5301

How is LDIR affecting memory?

Hi, I'm new here, thank you for giving me access to this forum. I'm following your lessons here (and watching the videos) but I'm already stuck at lesson two. Here LDIR is used to loop over memory addresses to set them to 0 to clear the screen. In the cheat sheet LDIR is explained as Load HL, DE Unt...

Go to advanced search