English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 01 December 2021, 00:17   #1
redblade
Zone Friend

redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 37
Posts: 1,863
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 ??
redblade is offline  
Old 01 December 2021, 00:26   #2
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,543
Quote:
Originally Posted by redblade View Post
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 ??
What the fuck is that!???
mcgeezer is offline  
Old 01 December 2021, 00:40   #3
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,067
It’s a wiki. You can fix that instead of »moaning«.

Last edited by idrougge; 01 December 2021 at 01:16.
idrougge is offline  
Old 01 December 2021, 11:09   #4
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 48
Posts: 4,446
The code on the wiki page looks correct. It's regular Motorola syntax, not gcc.
meynaf is offline  
Old 01 December 2021, 11:57   #5
a/b
Registered User

 
Join Date: Jun 2016
Location: europe
Posts: 573
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).
a/b is offline  
Old 01 December 2021, 13:52   #6
WayneK
Registered User
 
Join Date: May 2004
Location: Somewhere secret
Age: 47
Posts: 344
Quote:
Originally Posted by a/b View Post
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).

Yes, so called "AT+T syntax"... this is why anyone working with GDB has:


"set disassembly-flavor intel"


in their init
WayneK is offline  
Old 01 December 2021, 15:16   #7
tolkien
AmigaMan

tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 720
Quote:
Originally Posted by a/b View Post
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).
I read here about that page, registered and fixed it.
Was a bit late to me but hope it is ok now.
tolkien is offline  
Old 02 December 2021, 23:37   #8
redblade
Zone Friend

redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 37
Posts: 1,863
@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.
redblade is offline  
Old 03 December 2021, 16:01   #9
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,173
Madness, but sort of expected madness.

This is the perfect place to moan about it! Then it gets fixed quick
Photon is offline  
 


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 17:08
Any C/C++ example code? vim Coders. C/C++ 6 10 February 2015 06:34
Guru Code my1stamiga support.Other 8 29 May 2013 22:43
What's this code doing? Jherek Carnelia Coders. General 13 15 August 2011 18:55
3D code and/or internet code for Blitz Basic 2.1 EdzUp Retrogaming General Discussion 0 10 February 2002 12:40

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Page generated in 0.07381 seconds with 15 queries