標籤:stack head rac 複製 car tput from sci gif
1 ; Example assembly language program -- 2 ; Author: Karllen 3 ; Date: revised 05/2014 4 5 .386 6 .MODEL FLAT 7 8 ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD 9 10 INCLUDE io.h ; header file for input/output11 12 cr EQU 0dh ; carriage return character13 Lf EQU 0ah ; line feed14 15 .STACK 4096 ; reserve 4096-byte stack16 17 .DATA ; reserve storage for data18 19 promot BYTE "The program is to print Ascii from 10h to 100h",cr,Lf,020 line DWORD ?21 row DWORD ?22 ccf BYTE " ",023 crlf BYTE cr,Lf,024 char BYTE 1 DUP(?)25 26 .CODE ; start of main program code27 _start:28 output promot29 mov row,030 mov line,031 mov char,0Fh32 doFirstWhile:33 inc line34 cmp line,1535 jg endFirstWhile36 mov row,037 doSecondWhile:38 inc row39 cmp row,1640 jg endSecondWhile41 add char,142 output char43 output ccf44 jmp doSecondWhile45 endSecondWhile:46 output crlf47 jmp doFirstWhile48 endFirstWhile:49 50 INVOKE ExitProcess, 0 ; exit with return code 051 52 PUBLIC _start ; make entry point public53 54 END ; end of source code
【Java基礎】RTTI與反射之Java