18 July 2017, 20:44 | #81 | |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Quote:
Anybody else experiencing this issue? |
|
23 July 2017, 18:02 | #82 |
Registered User
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
|
phx - If you get a minute could you test this out on the 8-bit oldstyle modules? Check the tail end of a.out. PC is where the data would be loaded. Whenever PC (not offset into file) would surpass $8001 the pad bytes are truncated.
Change PC to 0 and the whole file is correct. Change PC to $8000 and only the first byte is correct. Z80 could assemble this as long as $ffff is never passed. Code:
pc set $4000 rept 128 org pc pc set pc+$100 byte $d6 endr end Last edited by clenched; 08 July 2020 at 22:16. |
24 July 2017, 18:44 | #83 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
Thanks for reporting. Another sign-problem in the binary-output. Fixed it. Updated snapshot is available tomorrow.
BTW, this is off topic and I also have an email address. |
27 July 2017, 10:48 | #84 | |
tulou
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 88
|
Quote:
|
|
24 August 2017, 09:41 | #85 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,369
|
BTW found a minor issue. Do this and you get a "branch out of range":
Code:
bra.b .open .open: |
24 August 2017, 10:31 | #86 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
|
It is not out of range, it does not exist
6000 xxxx -> BRA.W XXXX 60xx where xx != 00 -> BRA.S xx (and if 68020+ xx=FF -> BRA.L) |
24 August 2017, 11:30 | #87 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,369
|
yeah ok trying to play smartass (no pun intended ). I mean $6002.
|
24 August 2017, 11:47 | #88 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
You disabled optimizations. Otherwise vasm would have told you this:
Code:
warning 2058 in line 1 of "tst.s": short-branch to following instruction turned into a nop > bra.b .open |
24 August 2017, 12:00 | #89 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
|
|
25 August 2017, 01:27 | #90 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 852
|
I never really looked at the encoding of the instructions, but this is kinda weird... I would have expected the offset to be shifted right in the encoding so as to point to something word aligned.
So the 68000 has 128+32768 BRA encodings that result in an exception? And 1 was redefined for the 68020 for long branches? That sounds very wasteful. Unless they were reserved for future expansions? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
vasm and word alignment | Den | Coders. Asm / Hardware | 9 | 07 February 2014 11:25 |
Help linking VASM object code | clenched | Coders. Asm / Hardware | 2 | 24 May 2013 22:32 |
vasm fsincos | dalton | Coders. Asm / Hardware | 4 | 03 September 2012 10:35 |
vasm 1.5 RFC | phx | Coders. General | 30 | 11 December 2010 02:08 |
Win32 Game Ports? | BobRedthorp | Retrogaming General Discussion | 11 | 03 August 2003 13:56 |
|
|