怎么样用Basic语言编写hello Word程序

发布于2022-01-13 12:03:38
3个回答
admin
网友回答2022-01-13
public class HelloWorld{ public static void main(){ System.out.println(HelloWorld); } }
admin
网友回答2022-01-13
10 PRINT Hello world
20 GOTO 10
admin
网友回答2022-01-13
直接在记事本里面编写 汇编语言
data segment
;DATA HERE
String db 'Hello World!$'
data ends

stack segment stack
db 20 dup('STACK')
stack ends

;-------------------------------------------------
code segment
assume ds:data,es:data,ss:stack,cs:code
.586p
start:
mov ax, data
mov ds, ax
mov es, ax
;CODE HERE

mov dx, offset String
mov ah, 09h
int 21h

mov ax, 4c00h
int 21h
code ends
end start
存为hello.asm文件即可

回到
顶部