Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
PC addressing mode
Posted by: Sallafranque/Thadoss Apr,15.2013-21:42 

Hi,

I encounter a problem while trying to use PC relative code.
My code will be relocated, so I would like it mto be PC relative.

I only use 3 specific instructions :

move.w d0,clip_RRR_05(pc)


subq.w #1,clip_RRR_05(pc)
ble.w RRR_05

[...]
RRR_05: rts

clip_RRR_05: dc.w 0


In my example, the ble is OK as the branch is relative to the PC.

But the move and the sub don't compile. I thought the 68000 has PC addressing modes, but I've never used them before.

Any idea how to do ?

Best regards

Laurent / Thadoss








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
PC addressing mode Sallafranque/Thadoss Apr,15.2013-21:42
  Re: PC addressing mode ggn Apr,15.2013-22:35
    Re: PC addressing mode Sallafranque/Thadoss Apr,15.2013-22:46
      Re: PC addressing mode ggn Apr,15.2013-23:10
        Re: PC addressing mode Sallafranque/Thadoss Apr,15.2013-23:36
    Re: PC addressing mode Sallafranque/Thadoss Apr,15.2013-23:07
  Re: PC addressing mode mikro Apr,16.2013-02:47
  Re: PC addressing mode Defjam Apr,17.2013-17:43
    Re: PC addressing mode Sallafranque/Thadoss Apr,19.2013-00:21
      Re: PC addressing mode Mr. Styckx Apr,19.2013-14:27
        Re: PC addressing mode Defjam Apr,19.2013-18:35
          Re: PC addressing mode dml May,29.2013-00:25
            Re: PC addressing mode evil May,29.2013-14:54
              Re: PC addressing mode Cyprian Jun,01.2013-16:17
                Re: PC addressing mode evil Jun,01.2013-20:00


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson