Marius Posted January 8, 2011 Share Posted January 8, 2011 Hi! I want to do something like this: LDA # 10001001 But... this fails. Is this possible without the use of a Macro? It is just lazyness of me: Sometimes I'm a bit in a hurry (or really just lazy) and I don't want to transfer the binary number into decimal or hexadecimal. Sometimes it is also more 'clear' when I could do an AND or EOR with the binary format in stead of a number. Thanks Marius Quote Link to comment Share on other sites More sharing options...
Bryan Posted January 8, 2011 Share Posted January 8, 2011 ATASM, which is mostly MAC/65 compliant, allows LDA #~10001001, but I don't think the feature exists in MAC/65. Quote Link to comment Share on other sites More sharing options...
Tezz Posted January 8, 2011 Share Posted January 8, 2011 Not sure re mac65 but with mads you can use .. lda #%10001001 sta .. Quote Link to comment Share on other sites More sharing options...
Marius Posted January 8, 2011 Author Share Posted January 8, 2011 ATASM, which is mostly MAC/65 compliant, allows LDA #~10001001, but I don't think the feature exists in MAC/65. Hehe i don't even know how to type a ~ on my Atari 800XL :s I think that is really a small 'flaw' in Mac/65... But ok. Marius Quote Link to comment Share on other sites More sharing options...
Marius Posted January 8, 2011 Author Share Posted January 8, 2011 Not sure re mac65 but with mads you can use .. lda #%10001001 sta .. Yeah. I thought something too for Mac/65, but that does not work. It uses % already for vars in the Macro's. But thanks anyway :s Marius Quote Link to comment Share on other sites More sharing options...
NRV Posted January 8, 2011 Share Posted January 8, 2011 Seems is not possible.. the manual only speaks about those mythical "hxnums": hxnum - A hex number. It can be address or data. Hex numbers are treated as unsigned integers. dcnum - A positive number. Decimal numbers are rounded to the nearest two byte unsigned integer; 3.5 to 3.9 is rounded to 4 and 100.1 to 100.4 is rounded to 100. http://www.mixinc.net/atari/mac65.htm Quote Link to comment Share on other sites More sharing options...
Marius Posted January 9, 2011 Author Share Posted January 9, 2011 Ok... I might try to create a macro for that... Haha like Steve Jobs: There is a macro for that! Quote Link to comment Share on other sites More sharing options...
Alphasys Posted January 20, 2011 Share Posted January 20, 2011 Geez, how lazy can one be? If you have any feeling for binary and hex, you could easily write it as #$89 and then put a comment behind it with the binary representation if you're not too strut for energy. Amazing what lengths people go to just not to think. Quote Link to comment Share on other sites More sharing options...
Rybags Posted January 20, 2011 Share Posted January 20, 2011 I don't see a problem with using % - it makes representing packed bitflags and graphics stuff easier to recognise. Just seems that it was a big oversight by OSS in not allowing it... fairly sure many other 8-bit assemblers of the 80s allowed it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.