0 Replies - 1410 Views - Last Post: 03 November 2008 - 06:31 PM

#1 captainhampton   User is offline

  • Jawsome++;
  • member icon

Reputation: 14
  • View blog
  • Posts: 548
  • Joined: 17-October 07

68K Hello World Program

Posted 03 November 2008 - 06:31 PM

Description: A simple Hello World program for the 68K assembler.
*-----------------------------------------------------------
* Program    :Hello World
* Written by :captainhampton
* Date       :
* Description:68K Hello World Program
*-----------------------------------------------------------
START	ORG	$1000

*-----Code for Output-----
	LEA	MESSAGE,A1	Loads MESSAGE into address register A1
	MOVE.B  #14,D0		Moves the number 14 into data register D0
	TRAP 	#15		Displays Message
	
MESSAGE DC.B	'Hellow World!',0 Reserve memory and store data in message


	MOVE.B	#9,D0
	TRAP	#15		Halt Simulator

	END	START



Is This A Good Question/Topic? 0
  • +

Page 1 of 1