English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

#include Reg9s12.h
ORG $1000
JSR sort
JSR out
SWI

sort










out LDY #Nums+5
MOVB #5,count1
next1 MOVB #6,count2 ;
CLRA
next LDAB 1,Y-
PSHD ;
DEC count2 ;
BNE next ;
STY temp ;
LDD #msg ;
LDX printf ;
JSR 0,X ;
LEAS 12,SP ;
LDD temp ;
ADDD #12 ;
XGDY ;
DEC count1 ;
BNE next1 ;
RTS
printf EQU $EE88

temp RMB 2
count1 DB 30
count2 RMB 1
Nums DB 226,157,200,82,36,2,191,65,0,15,149,24,173,255,0
DB 117,209,77,52,99,45,33,139,166,222,245,9,107,11,8
msg FCC ' %u %u %u %u %u %u '
DB $0D,$0A,0

END

2007-12-13 06:20:06 · 2 answers · asked by Rob 1 in Computers & Internet Programming & Design

2 answers

I'm assuming this is Motorola-based Assembler (6502, maybe?), and I'm amazed that anyone is bothering to teach it, anymore, but you need to ask your teacher; that's why he or she is there!

BTW, why are there so many blank lines after the word "sort"???

2007-12-13 07:28:24 · answer #1 · answered by skaizun 6 · 0 0

you forgot milk, eggs and some butter for the cookies.
i have no idea what language that is. maybe people like me wouldnt even bother to look
IF YOU SPECIFIED THE PROGRAMMING LANGUAGE YOU ARE USING!!!
thank you.

2007-12-13 06:24:09 · answer #2 · answered by Anonymous · 0 1

fedest.com, questions and answers