Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: AMOS Extension Sources  (Read 13071 times)

0 Members and 1 Guest are viewing this topic.

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
AMOS Extension Sources
« on: April 17, 2015, 02:07:37 PM »

This post is targeted at anyone with AMOS and 68k skills.  It contains "first-cut" Resource disassemblies of the AMOS Extension Libraries available in the Downloads section.  I've done this package in a hurry, so forgive any errors.

I'd done a lot of work with Resource a couple of years ago, before the AMOS Pro sources became available.  That included creating Resource Symbols Libraries for the most common AMOS symbols.

In the AMOS Pro V2.10 redevelopment, I needed to understand a version 2.21 of amos.library that the AMCAF extension uses.  Installing AMCAF replaces any existing amos.library with this version.  So when I release the new version, installing AMCAF would wipe the bug fixes and any enhancements.  This means also disassembling the AMCAF extension itself as it looks like it's using an extended AMOS data area...

If anyone's ever tried disassembling an AMOS extension, they'll realise that it's near impossible to get a sensible result due to the unique library structure that AMOS uses.  The worst part being the relocation tokens in the code, which throws a disassembler completely off the tracks.  So I started looking at Resource macros to see if they could be persuaded to do the job.  I'd done some work a while back on Resource's Help Files.  They contain some very useful documentation but are near useless when it comes to understanding Resource and its macro language.  They are also buggy and just won't display some critical topics correctly.  So I pulled the data into a database and massaged them into something I could read.  The more I learnt from them, the more it looked to be possible to use them to do the majority of the work in disassembling an AMOS Extension Library.  This package is the result.

I'll be pursuing the AMCAF version of amos.library and the extension library itself as that's what I need right now.  The other extensions I'll pursue at some time in the future (after AMOS Pro V2.10 is completed).

What I would like to see is some buy-in from any other interested people.  There's a lot here to digest but, with some enthusiastic support, we should be able to get bug-free Extension Libraries available for AMOS - the most useful ones anyway.

How far anyone takes these disassemblies depends on what you need the resulting sources for.  In my case, I need a full understanding of what AMCAF's up to.  I'll leave the rest until a future date.  If all that's required is a simple bug fix or nag message removal (HungryHorace note - try offset $7EE in AMOSPro_PowerBobs.Lib, a "bra" should fix it  ;) ) further work may not be required.  It would be great if some other enthusiasts could have a go at some of them.  Please. please post what you're working on and any results here so we don't go reinventing the wheel  :)

Be sure to read the docs I've written.  There's also a quick database report in PDF format of the essential Resource documentation that I've created from its Help files.  If anyone's interested, I've also got disassemblies of Resource V6.06's executable and library files.  It's a program that would benefit from some bug fixes and fixes to its Help File system.  Let me know if anyone's interested and I'll post them.

Good luck and I hope this is of interest/benefit to someone...   :)
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: AMOS Extension Sources
« Reply #1 on: April 17, 2015, 06:43:31 PM »


I've downloaded the files and will take a look when I can.

There's quite alot of info to digest  ???
Logged

copse

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 30
Re: AMOS Extension Sources
« Reply #2 on: April 25, 2015, 08:25:22 AM »

If anyone's interested, I've also got disassemblies of Resource V6.06's executable and library files.  It's a program that would benefit from some bug fixes and fixes to its Help File system.  Let me know if anyone's interested and I'll post them.
What state are they in?  Can they be assembled into a fully working version of Resource v6.06?  Are they disassembled comprehensively with decent labels, or are they pretty raw?
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: AMOS Extension Sources
« Reply #3 on: April 26, 2015, 08:25:51 AM »

 I will certainly have a look to see ifs possible to remove the nag screen on PowerBobs!
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: AMOS Extension Sources
« Reply #4 on: May 03, 2015, 04:50:29 AM »

The AMCAF Extension is proving to be a bit of a nightmare!  Not only has it a much modified amos.library but it has also extended the AMOS data area (positive offsets from A5).  Of greater concern is that I can't yet see where it's allocated that extra memory!

The AMCAF amos.library specifies an extra $910 bytes but AMOSPro_AMCAF.Lib is cheerfully using locations into at least $1050 extra bytes.  Okay, so amos.library is a ready-modified part of the AMCAF install.  But the memory is allocated in the AMOSPro executable (or the Compiler) when that library is loaded, NOT by the library itself.  The third longword in amos.library does indeed contain the length of the data area, but its not used in amos.library. 

The AMCAF Installer is a compressed and obfuscated piece of work.  However, I've managed to extract its hunks and put them back to together so I can see what's happening.  That's currently in the tedious process of disassembly to find out what it's doing.  Looks like some config file changes being made there too.  But so far, no references to the exectuables that need changing to make that extra memory available.

It might be easier for me to create a plain-vanilla machine with AMOS Pro installed.  Then install AMCAF and check to see if it's made the change in AMOSPro.  But I need to fully understand what AMCAF is doing with its modifications for me to incorporate its amos.library changes into V2.10 anyway...

So, not happy and back to the grindstone.  ;D

Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: AMOS Extension Sources
« Reply #5 on: May 03, 2015, 10:08:34 AM »

But what if you never used the AMCAF installer just manually added it to the interpreter?

I'm sure that's all I've ever done....
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: AMOS Extension Sources
« Reply #6 on: May 03, 2015, 11:21:53 AM »

But what if you never used the AMCAF installer just manually added it to the interpreter?

I'm sure that's all I've ever done....
Aye, there's the rub!  If you do that, the extra memory it uses never gets allocated!  It may be that it doesn't get allocated anyway (I'll find out soon).  For a system with heaps of memory, you'd probably get away with it, for a while...  It would be an unallocated 4k or so that Exec don't know anything about. 

Anyone had any inexplicable crashes with AMCAF? 

Don't fret too much.  I've got to incorporate the mods for AMCAF's amiga.library into V2.10 anyway.  As, otherwise, anyone installing the AMCAF libraries (or just copying them  :o ) would find the V2.10 fixes disappear.  And vice versa, installing V2.10 would wipe AMCAF.  When I know what it's being used for and checked it all out, I'll be doing the mods to the "b.s", "+equ.s" and "+w.s" sources to make it fit.  With a blunt instrument if necessary!   ;D

My post was more a bit of a rant to let off steam as it's a fair bit of extra work...    Aaah, I feel better now  8)

BTW, AMOSPro_AMCAF.Lib and AMCAF's amos.library don't match together too well anyway.  They look like they may be from different release versions.  Either that or someone's just been a bit slack synchronising each library's view of how much extra memory is involved.  I should know more some time next week...
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: AMOS Extension Sources
« Reply #7 on: May 03, 2015, 07:54:08 PM »

I suppose it would be best to make a new extension in the same slot as AMCAF used to take and just implement enough commands to do all but the p2c and c2p related stuff including shade bobs, starfields and splinters.  The graphics commands can be integrated into another extension since they aren't as useful in day-to-day use.
Logged

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: AMOS Extension Sources
« Reply #8 on: May 03, 2015, 11:41:11 PM »

I suppose it would be best to make a new extension in the same slot as AMCAF used to take and just implement enough commands to do all but the p2c and c2p related stuff including shade bobs, starfields and splinters.  The graphics commands can be integrated into another extension since they aren't as useful in day-to-day use.
It's only amos.library that I'm working on for this phase, just to ensure no existing extensions break.  And only AMCAF looks to be a problem child.
The extensions themselves will come in the next phase.  I agree that it may be best for some to retain their existing slots but be reissued in a slightly different form.  They'd have to retain their existing token numbers though, otherwise any AMOS code using them would break.
And thanks for flushing the spam.   ;)
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: AMOS Extension Sources
« Reply #9 on: May 07, 2015, 09:00:28 PM »

Anyone had any inexplicable crashes with AMCAF? 

Hmmm... I don't think so, but AMCAF has alot of instructions and I have probably only every used a handful of them.
Logged

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: AMOS Extension Sources
« Reply #10 on: May 08, 2015, 04:48:06 AM »

Anyone had any inexplicable crashes with AMCAF? 

Hmmm... I don't think so, but AMCAF has a lot of instructions and I have probably only every used a handful of them.
I suspect that extra memory is only used by some of the less useful AMCAF instructions as SamuraiCrow pointed out.  I'll know more when I've completed tracing through what the installer's doing.  Wish me luck!  ;)
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

Tormentor

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: AMOS Extension Sources
« Reply #11 on: June 19, 2015, 11:25:38 AM »

I habe long time ago removed the Bower Bobs NAG Screen it was realy simple with the Reassembler & Assembler in MAXON ASM.

But now i am to silly todo it again  :o
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022