English Amiga Board


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

 
 
Thread Tools
Old 24 July 2013, 00:19   #1
atari900
 
Posts: n/a
Emacs Mode for 68000 assembler

Hi,

I recently started again to code a bit for the 68k - but definitely want to stick to emacs editor.

I searched on the web, forums etc, but couldn't find an 68000 mode for the editor which works on halfway decent emacs versions (the latest one I found was written on on SunOS - in the days of the SunOS).

"asm-mode" is ok, but lacks all the common keywords from Devpac, treats macros as regular command etc.

Anybody knowing where to get a 68k mode for emacs?

Thanks,
 
Old 01 August 2013, 19:02   #2
korruptor
TDI
 
korruptor's Avatar
 
Join Date: Feb 2007
Location: Blitter Town
Posts: 124
I looked for one for quite a while, a couple of years ago. Given that emacs dates back so far I thought it would be one of the easy modes to find, but unfortunately not, my Google-fu failed.

In the end I started writing one myself. The syntax highlighting and tabbing is trivial to get going, but I just can't find the original file. I thought I'd checked it into my old git-hub repository, but it's not there. If I find it I'll post it here.

In the meantime, I'd just take the asm mode and go from there. There really aren't many op-codes, and the highlighting is pretty simple for the most part. It should be enough to get you going.
korruptor is offline  
Old 17 September 2013, 10:54   #3
atari900
 
Posts: n/a
Thanks for the reply.

I ended writing a derived mode from asm-mode, too. As I always wanted to dig into some elisp it was a good project, too.

I added complete VASM and Devpac keyword, different marking of registers etc as well as some goodies like a function for instantly converting numbers from hex to binary to decimal and back.

The only real thing missing is some extended support for macros (mark the usage of macro calls differently than opcodes).

I clean it up a bit and upload it on github.
 
Old 17 September 2013, 11:17   #4
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,337
Links?
alexh is offline  
Old 17 September 2013, 23:03   #5
atari900
 
Posts: n/a
Coming on the WE - need to clear the source a bit first
 
Old 11 November 2014, 18:16   #6
jman
Registered User
 
Join Date: Nov 2010
Location: .
Posts: 351
I'm insufflating life into this old thread because I'd be interested in trying EMACS on the Amiga.

Which EMACS version are we talking anyway? Apparently the latest is this one:
http://aminet.net/package/util/gnu/em203i3

thanks
jman is offline  
Old 16 January 2023, 09:19   #7
torkildl
Registered User
 
Join Date: May 2021
Location: Norway
Posts: 19
Hello! I know this is 9 years ago, but did this land on GitHub? If not, would you be interested in sharing it some other way?
torkildl is offline  
Old 16 January 2023, 12:01   #8
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
This is a version that I found on the net and had to retouch it in order to solve errors. I don't know if I broke it in some way, but it seems to work.

This works from version 26 up to current version of emacs (28.2)
Attached Files
File Type: zip m68k-mode.zip (14.7 KB, 42 views)
alkis 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
680x0 to 68000 Counia Hardware mods 1 01 March 2011 10:18
Help with Assembler redblade Coders. General 8 23 April 2010 16:00
Motorola 68000 Structured Assembler Manual. Thorham Coders. General 3 16 May 2009 15:16
'Warp Mode' broken in 'windowed mode' NoX1911 support.WinUAE 3 26 May 2007 01:05
quitting on 68000? Hungry Horace project.WHDLoad 60 19 December 2006 20:17

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 03:05.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07650 seconds with 14 queries