English Amiga Board

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

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


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...
Old 26 January 2013, 16:15   #2
Join Date: Jul 2008
Location: Sweden
Posts: 2,265
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  

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 391 05 October 2020 13:03
Csound 3.481 on m68k squidbass Amiga scene 5 21 July 2013 21:29
AROS m68k Bug Reports Ezrec Amiga scene 1 03 October 2011 22:40
AROS m68k running on WinUAE turrican3 Amiga scene 1 01 January 2011 04:07
#M68k @ Amigaworld.net Iznougoud Amiga scene 0 06 October 2007 16: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 16:34.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.06681 seconds with 13 queries