; Program P3.asm
.MODEL small
.STACK 100h
; gen_header: Rd=0 Wr=0
; gen_header: # of identifiers=1
.DATA
F DW 0
dTv0 DW 0
; gen_header: code segment'll start
.CODE
ProgramStart:
mov ax,@data
mov ds,ax
; compiling the operator (2*5)
constant expression, I'll optimize..
10 = 2 * 5
; compiling the operator (3+(2*5))
constant expression, I'll optimize..
13 = 3 + 10
; compiling the operator (7*(3+(2*5)))
constant expression, I'll optimize..
91 = 7 * 13
; compiling the operator F:=(7*(3+(2*5)))
mov ax,91
mov F,ax
mov ah,4ch
int 21h
END ProgramStart
programm P3.asm is compiled
I'll start compiler from assembler, and linker
tasm P3 >>P3oc.htm
Turbo Assembler Version 3.1 Copyright (c) 1988, 1992 Borland International
Assembling file: P3.ASM
Error messages: None
Warning messages: None
Passes: 1
Remaining memory: 420k
tlink P3+teek >>P3oc.htm
Turbo Link Version 2.0 Copyright (c) 1987, 1988 Borland International
Compiler ended at
Thu Feb 14 19:51:38 2008