Started by arnoldemu, 15:23, 13 August 09
0 Members and 1 Guest are viewing this topic.
Quote from: arnoldemu on 15:23, 13 August 09I am looking for an assembler that can generate relocatable code preferably a PC based one.Any ideas? Thanks.
Quote from: fano on 19:01, 13 August 09afaik Winape assembleur can generate relocatable code, maybe maxam too
Quote from: Executioner on 17:15, 14 August 09WinAPE can, Maxam can't. The commands used are:relocate_startrelocate_endrelocate_table [byte|word] [address][/]There are also a couple of variables defined relocate_count and relocate_size. Basically, relocate_start marks the start of a relocatable code section, relocate_end marks the end, and relocate_table generates the relocation table. By default, it's simply a list of 16 bit words specifying the offset in the code of another word each, but for small code, you can create a byte table using relocate_table byte.Usually, you'd also use dw relocate_count somewhere.
Quote from: arnoldemu on 18:58, 14 August 09Ok, so does it handle both code and data, and also what if I code this:ld l,addr AND 255ld h,addr/256does it handle this? And if so, how is the data stored...
org #4000relocate_start.move_datald hl,data1ld de,data2ld bc,6ldirret.data1 dw move_data, data2, 0.data2 ds 6relocate_enddw relocate_countrelocate_table
Quote from: Longshot on 10:56, 17 August 09I'm not sure that that kind of relocate table is very useful or easy to use.
QuoteThe ability to assembly a code to an address defined for another address. (like the A2 dams option)
QuoteIsn't that the same as the Maxam second ORG parameter, as has always been supported by WinAPE (but I think the parameters are reversed)?
Quote from: Longshot on 12:22, 19 August 09But is it possible to haveORG #3000,$ or ORG $
org $,#3000 ; Generate code at #3000, current originorg $ ; Generate code at correct (current) address
Page created in 0.206 seconds with 37 queries.