Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Stupid Z80 assembly question

Reply to topic
Author Message
Kroustibat
  • Guest
Reply with quote
Stupid Z80 assembly question
Post Posted: Thu Apr 13, 2000 6:10 am
Hi there,

I've start learning emu programming (a sega of course) , i use Mz80 3.4

I've let mz80 manage all the memory access (so my memory map structure is empty) i don't know if it's a good way
(i know that if there's a write to the rom..)

After launching the emu, the code seems to goes into a infinite loop, so i've dissasemble the rom but i'm not an assembly freak
here's what i get

the memory region c00b seems to be at 0x00


and the inifinte loop
03d9 3a0bc0 ld a,(#c00b)
03dc b7 or a
03dd 28fa jr z,#03d9

with what bit mask the "OR" operand works ?

Tia
 
  • Joined: 24 Jun 1999
  • Posts: 1732
  • Location: Paris, France
Reply with quote
Post Posted: Thu Apr 13, 2000 8:29 am
Quote
> and the inifinte loop
> 03d9 3a0bc0 ld a,(#c00b)
> 03dc b7 or a
> 03dd 28fa jr z,#03d9
> with what bit mask the "OR" operand works ?

OR works with A. So in this case it's OR A, A
A quick way to test if A is null or not.
Basically the loop wait for A to be not null.
  View user's profile Send private message Visit poster's website
Kroustibat
  • Guest
Reply with quote
Post Posted: Thu Apr 13, 2000 10:23 am

Quote
> OR works with A. So in this case it's OR A, A
> A quick way to test if A is null or not.
> Basically the loop wait for A to be not null.


Thanks for your quick response !! :)
 
Reply to topic



Back to the top of this page

Back to SMS Power!