mirror of
https://github.com/NishiOwO/JWasm.git
synced 2025-04-22 01:04:39 +00:00
24 lines
325 B
Plaintext
24 lines
325 B
Plaintext
|
|
;--- problem with SEG operator, if operand is a struct member.
|
|
;--- addend was wrong in object module.
|
|
;--- fixed in v2.07.
|
|
|
|
.model small
|
|
.stack 128
|
|
|
|
foo struc
|
|
c_b1 db ?
|
|
c_b2 db ?
|
|
foo ends
|
|
|
|
.data
|
|
db 5 dup (?)
|
|
bar foo <?>
|
|
.code
|
|
start:
|
|
mov ax,seg bar.c_b2
|
|
sub ax,seg _DATA
|
|
mov ah,4Ch
|
|
int 21h
|
|
end start
|