03 October 2011, 12:54 | #21 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
AmigaOS has always had support for uninitialized space in executables not just as BSS (the correct meaning is Block Started by Symbol) but after any code and data as well. Corresponding source and 48 byte executable below, try it yourself and check memory usage while it's running. Code:
wait btst #6, $bfe001 bne wait rts ds.b 1000000 |
|
03 October 2011, 13:06 | #22 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
While I'm about and I think of it - is there a best single resource for learning more about the OS and how it functions and file loading / hunks etc. etc.
It's the stuff I know least about - I understand the hardware fairly well I think but not the OS and how to interact with it or how it itself interacts with the hardware. That's probably a very stupid question and more than likely I'll be admonished to look at RKRM Libraries & Devices or Includes & Autodocs or something but I've got those books and to be honest I find them to be a little too "C-centric" for my tastes. Any decent docs / tutorials about that explain this stuff nicely in an assembly language context...? |
03 October 2011, 20:16 | #23 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
What I wrote is perfectly correct as much you dislike it. That I didn't mention every OS detail to keep things simple doesn't automatically mean it's incorrect what I wrote.
Quote:
That's not the "correct" meaning. But since it's quite pointless to discuss this (and won't help anyone here in this thread) I'll just say that all you wrote here is correct and everything I wrote is incorrect so you'll be happy. |
|
04 October 2011, 00:28 | #24 |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 768
|
Hey stinger, so with the loading from hard drive, I could have complete control of the system, copper, blitter etc. As long at the port timer int is reactivAted, it will work. As thats a level two int, I take it running that with a CIA music timer at the same time is goon to cause an issue? Or am I thinking of a level 3 int?
|
04 October 2011, 09:52 | #25 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,545
|
That's an interesting question, BTW. Should it be disallowed to use anything but DS in a BSS section? I made no such restriction in vasm, so all directives are allowed, but just their size is recognized. The contents is lost as everything will turn to zero.
For example AsmOne will also accept DCB with a nonzero contents (like vasm), while Devpac doesn't allow DCB, just DS. What is most compatible? Probably to allow everything, to make all sources assemble...? |
04 October 2011, 09:56 | #26 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,545
|
Quote:
BTW, this feature is quite common in other file formats as well (e.g. ELF). |
|
19 October 2011, 16:50 | #27 | |
Registered User
Join Date: Feb 2010
Location: Helsinki, Finland
Posts: 36
|
Quote:
If you don't use blitter yourself then you can do your own level3 interrupt routine which checks if it was blitter that called, and in that case traps the system level3 vector. So you don't necessarily have to shuffle I/O and level3 all the time. You can keep them ON all times this way. Or you can do stuff the proper way. But that's not cool |
|
31 October 2011, 13:10 | #28 | |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 876
|
Quote:
If you want to release it without WHDLoad later you could encapsulate the api-calls using macros. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
crappy direct X in winuae 2.30? | trydowave | support.WinUAE | 1 | 06 January 2011 18:30 |
Direct ISO support | TEOL | support.WinUAE | 3 | 11 February 2007 11:27 |
a1200 and direct SCSI | pbareges | support.Hardware | 2 | 08 August 2006 02:25 |
Hardware port programming. CLK on parallel. | redblade | Coders. General | 0 | 29 March 2005 11:19 |
|
|