21 April 2010, 15:11 | #1 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
Help with Assembler
Hi.
I'm using AsmOne and slowly porting some of the RKM 1.3 to assembler. But with the intuition. I'm having trouble trying to put the nw_Flags on one line in assembler. Is it possible to write one line over two lines? How do I do that? The alternative is that I splite the the two lines into a routine which adds one line, loads the newwindow memory pointer to a register then copies it to the nw_Flags offset. Would prefer to just split it over two lines. Thanks in advance. |
21 April 2010, 15:20 | #2 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
NW_FLAGS = FLAG1|FLAG2|FLAG3 and then just use "move.l #NW_FLAGS,d0" f.e. Here's an example from one of my WHDLoad slaves: Code:
FLAGS = WHDLF_NoError|WHDLF_EmulTrap DEBUGKEY = $58 ; F9 QUITKEY = $46 ; DEL DEBUG ; absolute skip PL_SA MACRO PL_S \1,\2-(\1) ENDM HEADER SLAVE_HEADER ; ws_security + ws_ID dc.w 10 ; ws_version dc.w FLAGS ; flags dc.l 524288*2 ; ws_BaseMemSize dc.l 0 ; ws_ExecInstall dc.w Patch-HEADER ; ws_GameLoader IFD DEBUG dc.w .dir-HEADER ; ws_CurrentDir ELSE dc.w 0 ; ws_CurrentDir ENDC dc.w 0 ; ws_DontCache dc.b 0 ; ws_KeyDebug dc.b QUITKEY ; ws_KeyExit dc.l 524288 ; ws_ExpMem dc.w .name-HEADER ; ws_name dc.w .copy-HEADER ; ws_copy dc.w .info-HEADER ; ws_info |
|
22 April 2010, 16:42 | #3 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
Cheers StingRay, came up with that solution while at work. Will be useful .
So there is no assembler that lets you use more than one line for for one line of code? |
22 April 2010, 17:04 | #4 |
The 1 who ribbits
|
just to satisfy my idle curiosity whats the longest line you can have ?
|
22 April 2010, 17:41 | #5 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
EDIT: vasm also supports backslash line breaks |
|
22 April 2010, 17:58 | #6 |
The 1 who ribbits
|
Thats what I was thinking aswell, Thanks Leffmann
|
23 April 2010, 12:53 | #7 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
Quote:
Quote:
I think that 80 is a very sensible limitation which everybody should comply. Quote:
|
|||
23 April 2010, 14:01 | #8 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
Yep I stick to 80 columns for my asm source.
|
23 April 2010, 16:00 | #9 |
The 1 who ribbits
|
great that you put readability over functionality
but I do understand why you do it |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which assembler to use | BanisterDK | Coders. General | 4 | 10 January 2012 15:13 |
C to assembler | Jherek Carnelia | Coders. General | 5 | 23 July 2011 20:22 |
Learning assembler | bLAZER | Coders. General | 1 | 12 May 2007 05:00 |
assembler | harlequin | request.Apps | 26 | 07 February 2002 20:53 |
Assembler for WinUAE | Jherek Carnelia | request.Apps | 4 | 27 December 2001 08:32 |
|
|