Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Gelb

  • Newbie
  • *
  • Join Date: Aug 2003
  • Posts: 24
    • Show only replies by Gelb
    • http://amigazeux.net
Re: Arghhh What is wrong with this asm code? (must be something stupid...)
« Reply #14 from previous page: April 13, 2004, 12:02:39 AM »
Hey man, are you the same RWO (René W. Olsen) that is responsible for so many great graphical masterpieces including the desert skull picture in Kefrens Desert Dream?
...
 

Offline RWO

  • Newbie
  • *
  • Join Date: Mar 2003
  • Posts: 30
    • Show only replies by RWO
    • http://www.rwo.dk
Re: Arghhh What is wrong with this asm code? (must be something stupid...)
« Reply #15 on: April 13, 2004, 12:18:56 AM »
@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
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Arghhh What is wrong with this asm code? (must be something stupid...)
« Reply #16 on: April 13, 2004, 12:29:55 AM »
Quote
Well I could sweare that it worked lasttime tryed in v39

It might work by luck for some functions, but you can't know for sure which ones. You cannot assume the functions will continue to work like this in future OS versions, either.

Anyway, this hack only works for Kickstart 1.x dos.library, because it uses moveq + bra in jumptable and direct bsr/bra to other dos.library functions inside dos.library (BCPL legacy stuff). This hacky code was removed in V36 dos.library, and dos.library was made normal library.
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: Arghhh What is wrong with this asm code? (must be something stupid...)
« Reply #17 on: April 13, 2004, 12:35:24 AM »
Quote

That only was true for Kickstart 1.x (pre-V36). Kickstart V36+ dos.library requires library base in a6, like any other library.
I think that was the suggestion from V36 upwards.

I'm pretty sure the old software that uses a5 for dos will still work


:)
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Arghhh What is wrong with this asm code? (must be something stupid...)
« Reply #18 on: April 13, 2004, 12:39:37 AM »
Quote
I'm pretty sure the old software that uses a5 for dos will still work

And I am sure they don't. Some functions don't need dosbase at all, but what I am 100% sure about is that dos.library functions do NOT look into A5 for dosbase, ever.

At least they will cause problems if dos.library functions are patched (the patch calling dos.library functions by itself & wrong library base in a6 -> boom).

Don't count on it. It won't work. Always put dosbase in a6 when calling dos.library.