Welcome, Guest. Please login or register.

Author Topic: Arghhh What is wrong with this asm code? (must be something stupid...)  (Read 4625 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline RWO

  • Newbie
  • *
  • Join Date: Mar 2003
  • Posts: 30
    • Show all replies
    • http://www.rwo.dk
Quote
    bsr     init
     tst.l   d0               ; worked?
     beq     exit


this can be optimized to

     bsr     init
     beq.b   exit

Zero flag is allready set

Quote
    move.l  4,sysbase


     move.l  4.w,sysbase

And if you want to live on the edge move dosbase into a5 and sysbase to a6. Normally library bases has to be in a6 but dos library dont care ;)

-Rene
Debugging is a state of mind
 

Offline RWO

  • Newbie
  • *
  • Join Date: Mar 2003
  • Posts: 30
    • Show all replies
    • http://www.rwo.dk
@Piru

>Size optimization was not the focus here

okey.

>BEEP! Wrong.

Well I could sweare that it worked lasttime tryed in v39

@Gelb
No sorry wrong person, I have the same name as RWO/Kefrens well I'm not sure about my middlename.
Debugging is a state of mind