// ÀÛ¼ºÀÚ: ±è¿µ´ë( http://www.howto.pe.kr )
1.¹®Á¦¼³¸í
SIC/XE ±â°è¿¡¼ ¼öÇàµÇ´Â assemblerÀÇ ±¸Çö
SIC/XEÀÇ 2 passÀÇ ÀϹÝÀûÀÎ ±â´ÉÀ» ±âº»À¸·Î ÇÔ
pass 1(±âÈ£Á¤ÀÇ)
1. ÇÁ·Î±×·¥³»ÀÇ ¸ðµç ¹®¿¡ ÁÖ¼Ò¸¦ ¹èÁ¤
2. pass 2¿¡¼ »ç¿ëÇϱâ À§ÇØ ¸ðµç ·¹ÀÌºí¿¡ ¹èÁ¤µÈ ÁÖ¼Ò°ªµéÀ» ÀúÀå
3. ¾î¼Àºí·¯ Áö½ÃÀڵ鿡 °ü·ÃµÈ 󸮸¦ ºÎºÐÀûÀ¸·Î ÇàÇÔ
pass 2(¸í·É¾î¸¦ ¹ø¿ªÇÏ°í ¸ñÀûÇÁ·Î±×·¥ »ý¼º)
1. ¸í·É¾î¸¦ ¾î¼Àºí(¿¬»êÀÚ Äڵ带 ¹ø¿ªÇϰí ÁÖ¼Ò¸¦ Á¶»çÇÔ)
2. BYTE, WORDµîÀ¸·Î Á¤ÀǵǴ µ¥ÀÌÅÍ °ªÀ» »ý¼º
3. pass 1µ¿¾È¿¡ ÀÌ·ç¾îÁöÁö ¾Ê´Â ¾î¼Àºí·¯ Áö½ÃÀÚÀÇ Ã³¸®¸¦ ÇÔ
4. ¸ñÀûÇÁ·Î±×·¥°ú ¾î¼Àºí·¯ ¸®½ºÆ®¸¦ Ãâ·Â
SIC/XE ±â°è¿¡¼ ¼öÇàµÇ´Â ´Ù¾çÇÑ ±â´ÉµéÀ» ´Ü°èÀûÀ¸·Î ±¸Çö
2.°³¹ßȯ°æ
ÄÄÆÄÀÏ/½ÇÇà ȯ°æ: Linux (RedHat 6.1)
±¸Çö¾ð¾î: C ¾ð¾î
±¸ÇöÀÚ: ±è¿µ´ë(cozy@howto.pe.kr, http://www.howto.pe.kr )
3.Assembler ±â´É 󸮹üÀ§
Instruction Set : All the SIC/XE instructions listed in the appendix
Instruction Formats : 1Çü½Ä, 2Çü½Ä, 3Çü½Ä and 4Çü½Ä for the SIC/XE architecture
Addressing : Simple (with or without indexing), Indirect, Immediate
Assembler Directives : START, END, WORD, BYTE, RESW, RESB, BASE, NOBASE,
LTORG, EQU, CSECT, EXTDEF, EXTREF
Error Detection
1. illegal instruction
2. invalid symbol
3. undefined symbol in operand field
4. illegal addressing
5. duplicate symbol
4.AssemblerÀÇ °á°ú¹° Á¾·ù ¹× ½ÇÇà¹æ¹ý
1.AssemblerÀÇ °á°ú¹° Á¾·ù
symbol/literal table - *.sbl
assemble list - *.lst
object program - *.obj
2.Assembler ½ÇÇà¹æ¹ý
> sicxe source_file
source_fileÀº full name À̸ç source_fileÀÇ symbol/literal table ÆÄÀÏÀº source_file.sbl,
assemble list ÆÄÀÏÀº source_file.lst, object program ÆÄÀÏÀº source_file.obj ·Î Ãâ·Â
|
|