Вы находитесь на странице: 1из 5

FCIM

2
: .

. TI -104

2012

:
,
, .
:
1. , .
2. , :
) , :
- - (16 );
- BCD: -;
-: . -.
-
) ;
)
3. 25 stroca.
adr-stroca offset-segment,
25- 0abch.

2.1
stk segment stack
db 256 dup (?)
stk ends
data segment
alfa db 40+25,72h,75o,11011b,15+22h
db 0ach,-65,'a','abc'
beta dw 4567h,0bc4ah,1110111011b,2476
dw -7683,7683,'ab'
gama dd 12345678h,1,-1
dd 1.0,-1.0,-.23828125,0.0390625
gama1 dd gama
qw
dq 2,-2,2.5,-2.5
t1 dt 8888888888777777777, -5555555555555555555
tb dt 45671234567890123456,-45671234567890123456
f dt 3345,-3345,1.0,-1.0
data ends
cod segment
assume cs:cod,ds:data,ss:stk
start: mov ax,data
mov ds,ax
cod ends
end start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

2.1:
0000
stk segment stack
0000 0100*(??)
db 256 dup (?)
0100
stk ends
0000
data segment
0000 41 72 3D 1B 31
alfa db 40+25,72h,75o,11011b,15+22h
0005 AC BF 61 61 62 63
db 0ach,-65,'a','abc'
000B 4567 BC4A 03BB 09AC beta dw 4567h,0bc4ah,1110111011b,2476
0013 E1FD 1E03
6162
dw -7683,7683,'ab'
0019 12345678 00000001
+ gama dd 12345678h,1,-1
FFFFFFFF
0025 3F800000 BF800000 +
dd 1.0,-1.0,-.23828125,0.0390625
BE740000 3D200000
0035 00000019sr
gama1 dd gama
0039 0000000000000002
+ qw
dq 2,-2,2.5,-2.5
FFFFFFFFFFFFFFFE
+
4004000000000000
+

17
C004000000000000
18 0059 08888888888777777777+
t1 dt 8888888888777777777, 5555555555555555555
19
85555555555555555555
20 006D 45671234567890123456+
tb dt 45671234567890123456,45671234567890123456
21
C5671234567890123456
22 0081 00000000000000003345+
f dt 3345,-3345,1.0,-1.0
23
80000000000000003345+
24
3FFF8000000000000000+
25
BFFF8000000000000000
26 00A9
data ends
27 0000
cod segment
28
assume cs:cod,ds:data,ss:stk
29 0000 B8 0000s
start: mov ax,data
30 0003 8E D8
mov ds,ax
31 0005
cod ends
32
end start
2.3.1:
model small
.stack 20h
.data
alfa DW 3 DUP (?)
;
.code
;
begin:
mov ax,@data
;
mov ds,ax
;
mov ax,17
; 17
mov ax,10101b
; 10101
mov ax,11b
; 11
mov ax,21o
; 21
mov alfa,ax
; alfa
mov cx,ax
;
mov ax,bx
; bx
mov ax,cx
;
xchg ax,bx
; ax bx
mov si, 2
; 2 si
mov alfa[si],ax
; alfa+(si)
mov si,2
; 2 si
mov bx,offset alfa
; alfa bx
mov bx,alfa
; alfa bx
mov cx,[bx][si]
; (bx+si)
mov cx,alfa.2
; alfa.2
mov cx,alfa[2]
; alfa[2]
mov cx,[alfa+2]
; alfa 2
mov di, 4
; 4 di
mov byte ptr [bx][di],55h
; 55h byte ptr [bx][di]
mov si,2
; 2 si
mov bx,3
; 3 bx
mov alfa[bx][si],33h ; 33h alfa +(bx)+(si)
mov alfa[bx+si],33h
; 33h alfa [bx+si]
mov [alfa+bx+si],33h ; 33h [alfa+bx+si]
mov [bx][si].alfa, 33h ; 33h [bx][si].alfa
mov [bx][si]+alfa,33h ; 33h [bx][si]+ alfa
mov ax,4C00h
;
int 21h
end begin
1
2
3
4
5

0000
0000
0000
0000 03*(????)
0006

2.3.1:
.model small
.stack 20h
.data
alfa DW 3 DUP (?)
.code

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

0000
begin:
0000 B8 0000s
mov ax,@data
0003 8E D8
mov ds,ax
0005 B8 0011
mov ax,17
0008 B8 0015
mov ax,10101b
000B B8 0003
mov ax,11b
000E B8 0011
mov ax,21o
0011 A3 0000r
mov alfa,ax
0014 8B C8
mov cx,ax
0016 8B C3
mov ax,bx
0018 8B C1
mov ax,cx
001A 93
xchg ax,bx
001B BE 0002
mov si, 2
001E 89 84 0000r
mov alfa[si],ax
0022 BE 0002
mov si,2
0025 BB 0000r
mov bx,offset alfa
0028 8B 1E 0000r
mov bx,alfa
002C 8B 08
mov cx,[bx][si]
002E 8B 0E 0002r
mov cx,alfa.2
0032 8B 0E 0002r
mov cx,alfa[2]
0036 8B 0E 0002r
mov cx,[alfa+2]
003A BF 0004
mov di, 4
003D C6 01 55
mov byte ptr [bx][di],55h
0040 BE 0002
mov si,2
0043 BB 0003
mov bx,3
0046 C7 80 0000r 0033
mov alfa[bx][si],33h
004C C7 80 0000r 0033
mov alfa[bx+si],33h
0052 C7 80 0000r 0033
mov [alfa+bx+si],33h
0058 C7 80 0000r 0033
mov [bx][si].alfa, 33h
005E C7 80 0000r 0033
mov [bx][si]+alfa,33h
0064 B8 4C00
mov ax,4C00h
0067 CD 21
int 21h
end begin
2.3.2
.
=7 =7

IDEAL
MODEL small
STACK 256
DATASEG
V1 dw 1411o,-1411o,309h,-309h,1100001001b,-1100001001b
V2 dd 14o,17o,-14o,17o
V3 dq 7777.7777,-7777.7777
CODESEG
Start:
mov ax, @data
mov ds, ax
mov ax, 4c00h
int 21h
END Start
:
1
IDEAL
2 0000
MODEL small
3 0000
STACK 256
4 0100
DATASEG
5 0000 0309 FCF7
0309 FCF7 + V1
dw 1411o,-1411o,309h,-309h,1100001001b,1100001001b
6
0309 FCF7
7 000C 0000000C 0000000F + V2 dd 14o,17o,-14o,17o
8
FFFFFFF4 0000000F
9 001C 40BE61C71758E219 + V3 dq 7777.7777,-7777.7777

10
11
12
13
14
15
16
17

C0BE61C71758E219
002C
CODESEG
0000
Start:
0000 B8 0000s
mov ax, @data
0003 8E D8
mov ds, ax
0005 B8 4C00
mov ax, 4c00h
0008 CD 21
int 21h
END Start

3) 25 stroca.
adr-stroca offsetsegment, 25- 0abch.
.MODEL SMALL
.STACK 10h
.DATA
nr_elem EQU 25
stroca DW 25 DUP(?)
adr_stroca DD stroca
.CODE
begin: mov ax,@DATA
mov ds,ax
lds bx,adr_stroca
mov si,(nr_elem-1)*(TYPE stroca)
mov WORD PTR [bx][si],0abch
mov ax,4c00h
int 21h
END begin
:

1 0000
2 0000
3 0000
4
=0019
5 0000 19*(????)
6 0032 00000000sr
7 0036
8 0000 B8 0000s
9 0003 8E D8
10 0005 C5 1E 0032r
11 0009 BE 0030
12 000C C7 00 0ABC
13 0010 B8 4C00
14 0013 CD 21
15
16

.MODEL SMALL
.STACK 10h
.DATA
nr_elem EQU 25
stroca DW 25 DUP(?)
adr_stroca
DD stroca
.CODE
begin: mov
ax,@DATA
mov ds,ax
lds bx,adr_stroca
mov si,(nr_elem-1)*(TYPE stroca)
mov WORD PTR [bx][si],0abch
mov ax,4c00h
int 21h
END begin

: , ,
, .