1.利用RadASM 写汇编程序
本文介绍利用RedASM写一个messageBox “hello world”.
.386
.model flat, stdcall
option casemap :none
include windows.inc
include kernel32.inc
include masm32.inc
includelib kernel32.lib
includelib masm32.lib
.data
helloWorld db "hello world",0
.code
start:
invoke StdOut, addr helloWorld
invoke ExitProcess,0
end start
2.习题:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
写成c代码很简单:
|
用汇编实现如下
|