Slimelite BBS

wla-dx.lha

Back to cross

GB-Z80/Z80/6502/65C02/6510/65816/HUC6280/

Size
1.4M (1,496,515 bytes)
Added
2026-11-20 02:43
Downloads
1
Long Description
-------------------------------------------------------------------------------- - WLA DX GB-Z80/Z80/6502/65C02/6510/65816/HUC6280/SPC-700 Macro Assembler Package Written by 1998-2003 Ville Helin -------------------------------------------------------------------------------- - 1..... Introduction 2..... Assembler Directives 3..... Assembler Syntax 3.1.. Case Sensitivity 3.2.. Comments 3.3.. Labels 3.4.. Number Types 3.5.. Strings 3.6.. Mnemonics 3.7.. Brackets? 4..... Error Messages 5..... Supported ROM/RAM/Cartridge Types (WLA-GB) 5.1.. ROM Size 5.2.. RAM Size 5.3.. Cartridge Type 6..... Bugs 7..... Files 7.1.. 'examples' 7.2.. 'examples/gb-z80/lib' 8..... Temporary Files 9..... Compiling 9.1.. Compiling Object Files 9.2.. Compiling Library Files 10.... Linking 11.... Arithmetics 12.... Disassembling 13.... Binary to DB Conversion 14.... Things you should know about coding for... 14.1. Z80 14.2. 6502 14.3. 65C02 14.4. 6510 14.5. 65816 14.6. HUC6280 14.7. SPC-700 14.8. Pocket Voice (GB-Z80) 14.9. GB-Z80 15.... WLA Flags 16.... Extra compile time definitions 17.... Good things to know about WLA 18.... Author 19.... Thanks 20.... Future 21.... Support 22.... Legal Note ------------------------------------------------------------------------------ 1.... Introduction ------------------------------------------------------------------------------ I wrote this because I had never written an assembler before and I really needed a macro assembler which could compile the GB-Z80 code I wrote. ;) Gaelan Griffin needed real Z80 support for his SMS projects so I thought I could write WLA to be a little more open and nowadays it supports all the Z80 systems you can think of. You'll just have to define the memorymap of the destination machine for your project. After fixing some bugs I thought I could add support for 6502 systems so all NES-people would get their share of WLA as well. After finishing that few people said they'd like 65816 support (they had SNES developing in mind) so I added support for that. And then I thought I should write a 6510 version of WLA as well... Almost all rules that apply to Z80 compiling apply also to 6502, 65C02, 6510, 65816, HUC6280 and SPC-700. This is my ideal GB-Z80 macro assembler (not in final form, not yet). ;) Tastes differ. Thus WLA! Notice that WLA was initially made for Game Boy developers so the GB-Z80 version and the rest differ a little. Currently WLA can also be used as a patch tool. Just include the original ROM image into the project with .BACKGROUND and insert e.g., OVERWRITE .SECTIONs to patch the desired areas. Output the data into a new ROM image and there you have it. 100% readable (asm coded) patches are reality! Note that you can directly compile only object and library files. You must use WLALINK to link these (or only one, if you must) into a ROM/program file. About the names... WLA DX means all the tools covered in this documentation. So WLA DX includes WLA GB-Z80/Z80/6502/65C02/6510/65816/HUC6280/SPC-700 macro assembler (what a horribly long name), WLAB, WLAD and WLALINK GB-Z80/Z80/6502/65C02/6510/65816/HUC6280/SPC-700 linker. I use plain WLA to refer to the macro assembler. WLA DX's homepage: http://www.iki.fi/~vhelin/wla.html And if you happen to write something cool using WLA DX, please let me know, I want to see it! ------------------------------------------------------------------------------ 2.... Assembler Directives ------------------------------------------------------------------------------ Here's the order in which the data is placed into the output: 1. Data and group 3 directives outside sections. 2. Group 2 directives. 3. Data and group 3 directives inside sections. 4. Group 1 directives. Here are the supported directives (with examples) in WLA: [ALL] - All, GB-Z80, Z80, 6502, 65C02, 6510, 65816, HUC6280 and SPC-700 versions apply. [GB ] - Only the GB-Z80 version applies. [GB8] - Only the GB-Z80