English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 26 January 2013, 16:06   #1
RobSis
 
Posts: n/a
Rewriting m68k code

Hello,

I'm trying to understand and rewrite piece of m68k assembler, disassembled from one old Atari ST game.

Could you try to help me? I'm more of a beginner, considering the assembler.

Here's the asm code http://pastebin.com/KJCnUbqK and here's what I rewritten so far to C language: http://pastebin.com/fAJ2F6aC

So far, I got the the MOVEA instruction and got lost...
 
AdSense AdSense  
Old 26 January 2013, 17:15   #2
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,029
It simply generates a random name from three of the smaller words.

Specifically, A0 is a pointer to where it wants the name stored and D3 and D4 are states for its pseudo random number generator. It picks one word, stores at A0, capitalizes the first letter, then picks two more and append these to the end along with a null-byte.
Leffmann is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aros m68k (Kickstart substitute) mihcael Amiga scene 379 13 April 2016 22:47
Csound 3.481 on m68k squidbass Amiga scene 5 21 July 2013 22:29
AROS m68k Bug Reports Ezrec Amiga scene 1 03 October 2011 23:40
AROS m68k running on WinUAE turrican3 Amiga scene 1 01 January 2011 05:07
#M68k @ Amigaworld.net Iznougoud Amiga scene 0 06 October 2007 17:35

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 09:08.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.11955 seconds with 14 queries