Windows¾å¤ÇJWASM(¥Õ¥ê¡¼¤ÎMASM6¸ß´¹¥¢¥»¥ó¥Ö¥é)¤È98¥¨¥ß¥å¤ò»È¤Ã¤Æ¤Î¥×¥í¥°¥é¥àºîÀ®¤Ë´Ø¤¹¤ë¥¨¥È¥»¥È¥é¡£¤Þ¤¿¡¢PC-98¥×¥í¥°¥é¥ß¥ó¥°´Ø·¸¤Î½ñÀÒ¾Ò²ð¤È¤«¼«ºî¥½¥Õ¥È¤Î¿ÊĽ¤È¤«¤â¡£

V30ÍÑ¥½¥Õ¥È¤È¤Ï¡©

¤½¤³¤½¤³¸Å¤¤·¿¤ÎPC98¤Ë¤Ï8086¤òNEC¤¬¹â®¤Ë¤·¤Æ³ÈÄ¥¤Þ¤Ç¤·¤Æ¤·¤Þ¤Ã¤¿¦ÌPD70116¡¢Ä̾ÎV30¤È¤¤¤¦CPU¤¬ºÜ¤Ã¤Æ¤¤¤Þ¤¹¡£
Æȼ«¤Ë³ÈÄ¥¤·¤Æ¤·¤Þ¤Ã¤¿°Ù¤Ë¤Î286°Ê¹ß¤È¤Ï³ÈÄ¥¤µ¤ì¤¿µ¡³£¸ì¤¬»Ø¤¹Ì¿Î᤬°Û¤Ê¤ê¡¢·ë²Ì¤È¤·¤Æ¸ß´¹À­¤Ë·ç´Ù¤¬¤¢¤ë¤È¤¤¤¦¤³¤È¤Çͭ̾¤Ç¤¹¡£
º£²ó¤Ï¤½¤ó¤ÊV30ÍÑ¥×¥í¥°¥é¥à¤Ïºî¤ì¤ë¤«¡¢¤È¸À¤¦¤³¤È¤ò·Ú¤¯»î¤·¤Æ¤ß¤Þ¤·¤¿¡£
¼Âµ¡¤Ï»ý¤Ã¤Æ¤Ê¤¤¤Î¤Ç¡¢V30¤â¥¨¥ß¥å¥ì¡¼¥È¤·¤Æ¤¤¤ë¤é¤·¤¤np2¤¬¥Æ¥¹¥È´Ä¶­¤Ç¤¹¡£

ɬÍפʤâ¤Î

the Macroassembler AS
V30¥×¥í¥°¥é¥Þ¡¼¥º¥ê¥Õ¥¡¥ì¥ó¥¹¤«¤½¤ì¤ËÎह¤ë»ñÎÁ

the Macroassembler AS¤Ë¤Ä¤¤¤Æ

the Macroassembler AS¤Ï¤¤¤í¤¤¤í¤ÊCPU¤ËÂбþ¤·¤¿¥¢¥»¥ó¥Ö¥é¤Ç¤¹¡£
V30¤Ë¤âÂбþ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢COM¥×¥í¥°¥é¥à¤·¤«ºî¤ì¤Ê¤¤¡¢MASM¤È°ìÉô¸ß´¹À­¤¬¤Ê¤¤¡¢ÆüËܸì¤Î²òÀ⤬¾¯¤Ê¤¤¡¢¤Ê¤É¤ÎÆñÅÀ¤¬¤¢¤ê¤Þ¤¹¡£
¡ÊZ80¤Ë¤âÂбþ¤·¤Æ¤¤¤ë¤Î¤Ç¡¢PC88ÍѤΥ½¥Õ¥È¤âºî¤ì¤½¤¦¤Ç¤¹¡£beep²»¥×¥í¥°¥é¥à¤Ïºî¤ì¤Þ¤·¤¿¡£¡Ë
MASM¤È¤Î°ìÈ֤ΰ㤤¤Ïmov si,offset test ¤¬mov si,test¤Ç½ñ¤«¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¡¢¤È¸À¤¦½ê¤Ç¤·¤ç¤¦¡£
¾¤Ë¤âSEG¤Ê¤ÉÊØÍø¤Ê±é»»»ÒÎब»È¤¨¤Ê¤«¤Ã¤¿¤ê¼«Ê¬¤Ç¥»¥°¥á¥ó¥È¤È¤«½é´ü²½¤ò¤¹¤ëɬÍפ¬¤¢¤Ã¤¿¤ê¤È¤«¡¢¿§¡¹ÌÌÅݤʤΤÇPC98ÍÑ¥½¥Õ¥È¤òºî¤ë¡¢¤È¸À¤¦´ÑÅÀ¤Ç¤ÏÁ´¤¯¥ª¥¹¥¹¥á¤Ç¤­¤Þ¤»¤ó¡£
V30¤ò®¤¤8086¤È¤·¤Æ»È¤¨¤Ð¸ß´¹À­ÌäÂê¤âµ¯¤­¤Þ¤»¤ó¤·¡¢ÌµÆñ¤Ç¤¹¤·¡¢JWASM»È¤¨¤Þ¤¹¤·¡£
¤·¤«¤·¡¢V30ÀìÍÑ¥×¥í¥°¥é¥à¡¢¤È¤¤¤¦¶Á¤Ë¥í¥Þ¥ó¤ò´¶¤¸¤ë¿Í¤â¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤Î¤Ç¡¢¶¯°ú¤Ë»È¤Ã¤Æ¤ß¤Þ¤·¤¿¡£

¡ÖTEST¡×¤òɽ¼¨¤¹¤ë¥µ¥ó¥×¥ë

°Ê²¼¤Î¥³¡¼¥É¤òV30.txt¤ËÆþÎϤ·¤Æ²¼¤µ¤¤¡£
¢¨wiki¤ÎÅÔ¹ç¤ÇÈ´¤¤¤Æ¤¤¤Þ¤¹¤¬¡¢¡Östart:¡×¤È¡ÖTX¡×°Ê³°¤Î¹Ô¤Ï¥¿¥Ö¤òÆþ¤ì¤Æ²¼¤µ¤¤¡£
¥»¥°¥á¥ó¥È¼þ¤ê¤Î¤Á¤ç¤Ã¤È¤·¤¿½ê°Ê³°¤Ï´ðËÜŪ¤Ë¤ÏMASM¤Îx86ÍѤÈƱ¤¸¤Ç¤¹¡£
¤¿¤À¡¢ah=09h¤Çint 21h¤ò¸Æ¤ÖºÝ¤Ëset1¤È¤¤¤¦V30¤ÎÌ¿Îá¤ò»È¤Ã¤Æah¤ò09¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤ÎÊѹ¹¤ÇV30ÍÑ¥×¥í¥°¥é¥à¤Ë¤Ê¤ê¡¢np2¤ÎVM¥â¡¼¥É¤Ç¤ÏÆ°¤­¤Þ¤¹¤¬¡¢VX¥â¡¼¥É¤äT98¤Ê¤É¤Ç¤ÏÀµ¾ï¤ËÆ°¤­¤Þ¤»¤ó¡£

SEGMENT code
org 100h
ASSUME DS:data,CS:code,ES:data
start:
mov ax,cs
mov ds,ax

mov dx, TX
mov ax,0
mov cl,0
set1 ah,cl
mov cl,3
set1 ah,cl
int 21h

mov ah,4Ch
int 21h

TX db "TEST$"

END start

¥¢¥»¥ó¥Ö¥ë¤Î»ÅÊý

­¡the Macroassembler AS¤Îbin¥Õ¥©¥ë¥À¤«¤é°Ê²¼¤Îʪ¤òºî¶È¥Õ¥©¥ë¥À¤Ë¥³¥Ô¡¼¤¹¤ë¤«¡¢¥Ñ¥¹¤òÄ̤·¤Æ¤ª¤¯¤«¤·¤Æ²¼¤µ¤¤¡£
as.msg asw.exe cmdarg.msg ioerrs.msg p2bin.exe p2bin.msg tools.msg

­¢¼¡¤Ë°Ê²¼¤ÎÆâÍƤΥƥ­¥¹¥È¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢³ÈÄ¥»Ò¤òÊѤ¨¤Æ.bat¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤·¤ç¤¦¡£
asw V30.txt -CPU V30
p2bin V30.p V30.com -r $-$
pause

­£ºî¤Ã¤¿.bat¤ò¥¯¥ê¥Ã¥¯¤·¤Æºî¶È´°Î»¤Ç¤¹¡£

asw¤¬¥¢¥»¥ó¥Ö¥éËÜÂΤǡ¢-CPU°Ê²¼¤ÇCPU¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£(-CPU Z80¤ÇZ80¤Ë¤Ê¤Ã¤¿¤ê¤·¤Þ¤¹)
p2bin¤Ï.com¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£
ñ½ã¤Ëºî¤ë¤È32KB¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬¡¢-r $-$¤ÇɬÍפÊÈϰϤΤߤΥե¡¥¤¥ë¤Ë¤Ê¤ê¤Þ¤¹¡£

¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸¤ËÆþ¤ì¤Æ¼Â¹Ô¤¹¤ì¤ÐTEST¤Îʸ»ú¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£

¤½¤Î¾Ãí°Õ

the Macroassembler AS¤ÎSEGMENT´Ø·¸¤ÏÉÕ°¤Î¥É¥­¥å¥á¥ó¥È¤òÆɤó¤Çĺ¤¯¤È¤·¤Æ¡¢¤È¤ê¤¢¤¨¤º¤ÎÃí°ÕÅÀ¤ò¡£
V30¤Ç¤ÏCRL1 rr,num¡¢¤È¤¤¤¦¤è¤¦¤Ê´ðËܤνñ¼°¤Î¾¤Ë¡¢CLR1 CY¤Ç¥Õ¥é¥°¥¯¥ê¥¢¡¢¤È¤¤¤¦Ê̤Υª¥Ú¥é¥ó¥É¿ô¤Î½ñ¼°¤¬¤¢¤ë»ö¤¬¤¢¤ê¤Þ¤¹¡£
¤Ç¡¢¥Õ¥é¥°¤ò¥¯¥ê¥¢¤·¤¿¤ê¥»¥Ã¥È¤Æ¤âÂç¾æÉפÀ¤í¤¦¤È̵Â̤ËÆüìÈǤò»È¤ª¤¦¤È¤·¤¿½ê¡¢¥¢¥»¥ó¥Ö¥é¤¬Ç§¼±¤·¤Æ¤¯¤ì¤Þ¤»¤ó¤Ç¤·¤¿¡£
¾¤Ë¤â¤³¤¦¤¤¤¦¥Ð¥°¤Ã¤Ý¤¤½ê¤¬¤¢¤ë²ÄǽÀ­¤¬¤¢¤ë¤Î¤Ç¡¢the Macroassembler AS¤ò»È¤¦¾ì¹ç¤Ë¤ÏÃí°Õ¤·¤¿Êý¤¬Îɤ¤¤È»×¤¤¤Þ¤¹¡£


º£²ó¤Ï¤Ê¤«¤Ê¤«Ã¯ÆÀ¤Êµ­»ö¤À¤Ã¤¿¤Î¤Ç¤Ï¤È»×¤¤¤Þ¤¹¤¬¡¢º¬ËÜŪ¤Ë¤³¤Îwiki¤È¤«¿Æ¥µ¥¤¥È¤È¤«¤Ã¤ÆïÆÀÄɵá¤Î¾ì¤Ç¤¹¤«¤é¡¢¤È¸À¤¤Ìõ¤ò¤·¤Æ¤ª¤­¤Þ¤¹¡£

Menu

´ÉÍý¿Í/Éû´ÉÍý¿Í¤Î¤ßÊÔ½¸¤Ç¤­¤Þ¤¹