. : : Assembly Language : : .  |  首页  |  我提出的问题  |  我参与的问题  |  我的收藏  |  消息中心   |  游客  登录  | 
刷新 | 提问 | 未解决 | 已解决 | 精华区 | 搜索 |
  《汇编语言》论坛 ->第一个程序
  管理员: assembly   [回复本贴] [收藏本贴] [管理本贴] [关闭窗口]
主题 : :  请教大家,  [待解决] 回复[ 1次 ]   点击[ 312次 ]  
512134
[帖 主]   [ 发表时间:2009-02-18 23:55 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2009-02-10 01:48
assume cs:hhh
hhh segment
mov ax,1000h
mov ss:ax
mov sp:0
add sp:10
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
hhh ends
end
这里程序什么地方错了,为什么编译不了,这是本人学完本章后为了消化,乱写的,结果发现怎么的也编译不了
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987.  All rights reserved.

Source filename [.ASM]: f:\a\4.txt
Object filename [4.OBJ]: f:\a\66
Source listing  [NUL.LST]:
Cross-reference [NUL.CRF]:
f:\a\4.txt(4): error A2049: Illegal use of register
f:\a\4.txt(5): error A2038: Left operand must have segment
f:\a\4.txt(6): error A2038: Left operand must have segment

  50906 + 450294 Bytes symbol space free

      0 Warning Errors
      3 Severe  Errors
他说有3个地方错了,麻烦大家指教一下,谢谢
512134
[第1楼]   [ 回复时间:2009-02-19 13:14 ]   [引用]   [回复]   [ top ] 
荣誉值:0
信誉值:0
注册日期:2009-02-10 01:48
知道错在哪里了,郁闷死
mov ss:ax 
mov sp:0 
add sp:10 

这里,应该是,我用成:了
需要登录后才能回帖 -->> 请单击此处登录
    Copyright © 2006-2024   ASMEDU.NET  All Rights Reserved