30 November 2021, 23:17 | #1 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
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 ?? |
30 November 2021, 23:26 | #2 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
|
|
30 November 2021, 23:40 | #3 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
It’s a wiki. You can fix that instead of »moaning«.
Last edited by idrougge; 01 December 2021 at 00:16. |
01 December 2021, 10:09 | #4 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,322
|
The code on the wiki page looks correct. It's regular Motorola syntax, not gcc.
|
01 December 2021, 10:57 | #5 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,038
|
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). |
01 December 2021, 12:52 | #6 | |
Registered User
Join Date: May 2004
Location: Somewhere secret
Age: 50
Posts: 364
|
Quote:
Yes, so called "AT+T syntax"... this is why anyone working with GDB has: "set disassembly-flavor intel" in their init |
|
01 December 2021, 14:16 | #7 | |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
Quote:
Was a bit late to me but hope it is ok now. |
|
02 December 2021, 22:37 | #8 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
@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. |
03 December 2021, 15:01 | #9 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
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 | |
Similar Threads | ||||
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 |
|
|