![]() |
![]() |
#1 |
Zone Friend
![]() Join Date: Mar 2004
Location: Middle Earth
Age: 38
Posts: 1,891
|
Rosetta Code
Hi,
Probably the wrong place to moan about it but http://rosettacode.org/wiki/Bitwise_...68000_Assembly seems to be wrong. AND [code] MOVE.W D0,#$100 MOVE.W D1,#$200 AND.W D0,D1 [code] Is this GCC assembler, but even then I don't see the %D0 ?? |
![]() |
![]() |
#2 | |
Registered User
![]() Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,580
|
Quote:
|
|
![]() |
![]() |
#3 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,094
|
It’s a wiki. You can fix that instead of »moaning«.
Last edited by idrougge; 01 December 2021 at 00:16. |
![]() |
![]() |
#4 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 49
Posts: 4,529
|
The code on the wiki page looks correct. It's regular Motorola syntax, not gcc.
|
![]() |
![]() |
#5 |
Registered User
![]() Join Date: Jun 2016
Location: europe
Posts: 591
|
Because someone fixed it shortly afterwards:
This page was last modified on 30 November 2021, at 23:47. Also, gcc/g++ is using a standard syntax (src,dst) and not reversed (dst,src), even on x86 as far as I know (at least gdb on linux does for as long as I can remember). |
![]() |
![]() |
#6 | |
Registered User
Join Date: May 2004
Location: Somewhere secret
Age: 48
Posts: 349
|
Quote:
Yes, so called "AT+T syntax"... this is why anyone working with GDB has: "set disassembly-flavor intel" in their init ![]() |
|
![]() |
![]() |
#7 | |
AmigaMan
![]() Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 726
|
Quote:
Was a bit late to me but hope it is ok now. |
|
![]() |
![]() |
#8 |
Zone Friend
![]() Join Date: Mar 2004
Location: Middle Earth
Age: 38
Posts: 1,891
|
@tolkien: Thanks for fixing it, I really must learn how to use wiki technology.
I just checked out the Rosetta page because of the shit show (healthy debate) that is happening in the Python thread I also managed to get some X11/xathena code from Roseatta for NetBSD as it's always good to have some examples. |
![]() |
![]() |
#9 |
Moderator
![]() Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,174
|
Madness, but sort of expected madness.
![]() This is the perfect place to moan about it! Then it gets fixed quick ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Code Analysis | DanielAllsopp | Coders. Asm / Hardware | 3 | 16 April 2020 16:08 |
Any C/C++ example code? | vim | Coders. C/C++ | 6 | 10 February 2015 05:34 |
Guru Code | my1stamiga | support.Other | 8 | 29 May 2013 21:43 |
What's this code doing? | Jherek Carnelia | Coders. General | 13 | 15 August 2011 17:55 |
3D code and/or internet code for Blitz Basic 2.1 | EdzUp | Retrogaming General Discussion | 0 | 10 February 2002 11:40 |
|
|