; ex0000.nas [FORMAT "WCOFF"] [FILE "ex0000.nas"] [INSTRSET "i486p"] [BITS 32] GLOBAL _G01Main [SECTION .text] _G01Main: MOV EAX,msg CALL [ESI] DB 0x53, 0x00 ; [5 (0) (!6_x) 3 EAX] ; 5 (0) (!6_x) 3 の後に!6がある RET [SECTION .data] msg DB "hello, world", 0
TARGET = ex0000 MODE = g01 OBJS = ex0000.obj INCPATH = ../z_tools/guigui01/ include ../z_tools/com_mak.txt
; ex0001.nas [FORMAT "WCOFF"] [FILE "ex0001.nas"] [INSTRSET "i486p"] [BITS 32] GLOBAL _G01Main [SECTION .text] _G01Main: MOV AL,0x20 putcloop: CALL [ESI] DB 0x55, 0x16, 0xb8 ; [5 (0) !5 1 AL] INC AL CMP AL,0x7f JB putcloop RET
; ex0002.nas [FORMAT "WCOFF"] [FILE "ex0002.nas"] [INSTRSET "i486p"] [BITS 32] GLOBAL _G01Main [SECTION .text] _G01Main: CALL [ESI] DB 0x51, "hello, wolrd", 0 RET
; ex0003.nas [FORMAT "BIN"] [INSTRSET "i486p"] [BITS 32] [SECTION .text] DB 0x47, 0x01, 0x04 ; 簡易形式用ヘッダ _G01Main: CALL [ESI] DB 0x51, "hello, wolrd", 0 RET
efg01 ../z_tools/nask.g01 ex0003.nas ex0003.g01 ex0003.lst
; ex0004.nas [FORMAT "BIN"] [INSTRSET "i486p"] [BITS 32] [SECTION .text] DB 0x47, 0x01, 0x05 ; 簡易形式用ヘッダ _G01Main: DB 0x51, "hello, wolrd", 0
(This host) = http://osask.net