nitrologic / skid30

Acid Software's Amiga game Skidmarks turns 30
7 stars 1 forks source link

document wb_pointer test #10

Open nitrologic opened 1 year ago

nitrologic commented 1 year ago

The common practise of testing if host is workbench or cli. The address above execbase 0x80107c or what have you needs some explanation.

Unlike AAA bare metal games that have no need for the Amiga OS, command-line utilities on the Amiga and Blitz2 authored apps need to detect if they were running under workbench.

The emulator now returns value for the (undocumented?) "Workbench-pointer" which if 0 means they can run confidently as a CLI command. The lha archiver utility and blitz2 basic compiler use the same method on start up.

nitrologic commented 1 year ago

There are now multiple undocumented tests that have received undocumented special case lines of code.

Some warp.s references have been added to notes.txt and other ROMs may be added shortly.

nitrologic commented 1 year ago

See offical docs that add some explanation to the warp.s strategy

http://amigadev.elowar.com/read/ADCD_2.1/Libraries_Manual_guide/node060F.html