![]() |
![]() |
#101 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Quote:
This program was just full of this and if i could kick the author's ass i'd have done it. ![]() |
|
![]() |
![]() |
#102 | |
Registered User
Join Date: Mar 2016
Location: Ozherele
Posts: 229
|
Quote:
![]() |
|
![]() |
![]() |
#103 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
|
![]() |
![]() |
#104 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Well, nothing a simple MACRO in ReSource couldn't solve! ![]() |
|
![]() |
![]() |
#105 |
Registered User
Join Date: Mar 2016
Location: Ozherele
Posts: 229
|
I have the next sequence in my x86 code
Code:
test [data],3 jne label ... data dw 0 Code:
btst.w #0,data ;or btst.b #0,data+1 bne label btst.w #1,data bne label Code:
move data,ccr bcc label bvc label Have I missed a better way? Thanks. |
![]() |
![]() |
#106 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
|
![]() |
![]() |
#107 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,638
|
|
![]() |
![]() |
#108 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
And it doesn't have a size spezifier either, i.e. btst.w is wrong and any assembler which accepts that is broken IMHO.
|
![]() |
![]() |
#109 |
Registered User
Join Date: Mar 2016
Location: Ozherele
Posts: 229
|
I have found out that Text call preserves A1 with A500 but corrupts it with A1200.
![]() |
![]() |
![]() |
#110 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
D0-D1/A0-A1 are scratch registers, this has always been the case for system calls.
|
![]() |
![]() |
#111 |
Registered User
Join Date: Mar 2016
Location: Ozherele
Posts: 229
|
Thank you. I hoped that A1200 remains more compatible with A500 and was surprised when my code failed to work with A1200. I am going to follow documentation more strictly.
Last edited by litwr; 15 December 2018 at 05:59. |
![]() |
![]() |
#112 |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,039
|
Remember some Amiga ROM-s routines were reworked a few times. D0-D1/A0-A1 are always Amiga scratch registers, except a few math and exec routines (info is stored inside docs). Of course not always all scratch registers are used/changed.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Misc Amiga Assembler Source Code | copse | Coders. General | 14 | 20 October 2019 02:05 |
The 6502 assembler code in "The Terminator" (1984) | Shoonay | Nostalgia & memories | 2 | 15 May 2009 13:52 |
Assembler System Friendly code | redblade | Coders. General | 3 | 29 July 2008 12:15 |
Amiga Cross Assembler to code intros! - Help! | W4r3DeV1L | Amiga scene | 6 | 30 May 2008 16:53 |
3D code and/or internet code for Blitz Basic 2.1 | EdzUp | Retrogaming General Discussion | 0 | 10 February 2002 11:40 |
|
|