getaadr2.s
629 Bytes
/******************************
* KANJI-READ v2 1997/07/15 *
* Programmed By Melody-Yoshi *
******************************/
.align 2
.text
.globl LeoGetAAdr2
.ent LeoGetAAdr2
/* ====== ASCIIʸ»ú¤Î¾ðÊó¤òÆÀ¤ë2 ===== */
/* int getaadr2(int ccode,int *dx,int *dy,int *cy) */
LeoGetAAdr2:
srl $24,$4,15
and $3,$24,0x1FFFE
add $2,$3,0x7EE80
srl $10,$4,8
and $11,$10,15
add $12,$11,1
sw $12,($6)
and $13,$4,0xFE
sll $14,$13,24
sra $15,$14,25
sw $15,($7)
and $25,$4,1
sll $24,$25,4
srl $3,$4,12
and $9,$3,15
or $10,$9,$24
sw $10,($5)
jr $31
.end