364 , , : , , , , , , . , , , .
:
364150
(304)
(123)
(23)
(113)
(4)
(4814)
(5227)
(2616)
(3423)
(4214)
(1518)
(68)
- (2836)
(8269)
(50)
(50)
(762)
(2)
(5275)
(30)
(1222)
(43)
(20403)
(465)
(19)
(108)
(173)
(96)
(899)
(54)
(34)
(476)
(106)
(62792)
(3562)
, (6444)
(2165)
(21320)
(766)
(64)
(3145)
(60)
(17)
(588)
(1000)
(106)
(48)
(3)
(1167)
(8485)
(537)
: (2044)
(11657)
(532)
(21)
(7985)
(3721)
, (10549)
(88)
(58)
(36)
(2257)
(12491)
(91)
(797)
(1338)
(24)
, (214)
(1141)
(3)
(8)
(21697)
(7850)
(3801)
(682)
, (2881)
(475)
(1)
, (7100)
(8694)
, (4121)
(443)
(952)
(2967)
(23)
(748)
(4876)
(95)
(107)
(7)
(2004)
(15)
(663)
(240)
(39)
(25)
(624)
(16)
(2652)
(136)
(90)
(406)
(95)
(24)
(3463)
(4482)
(7216)
(4592)
(5386)
(3)
(2244)
(23)
(29)
(35)
(4517)
(20645)
- (666)
(119)
(2573)
(889)
(288)
(148)
, (1140)

:

:
: ,
: 14:04:17 09 2005
: 2895 : 7 : 14 : 2.4 : 2    

 

1.   堠

2.  

3.  

    

     젠 ___

    

4.  


, 2 : .

:

     ;

     ;

     ;

().

, , .

: , , , , , ..

: , .

- , .

: . . () . : -, , , , ; -, , .


.

, . , .

, , , . : PARAM , TABLE , MASK , ADD , SUB .. . .

, : (- , , ), - . , ( 1 - 4 ).

-, . . , .

- . , , .

/ ( ) .

:

( ) ;

, ;

;

;

, () .

, . . .

, , , . .

:

Ġ Ġ

, , . , , , . , . , . . .

, , . .

. , .

:

MOV (MOVE) -,

ADD (ADDITION) -

SUB (SUBSTRACT) -

LDA (LOAD DIRECT

ACCUMULATOR) -

INR (INSCREMENT

REGISTER) -

DCR (DECREMENT

REGISTER)

, , .

. , , , , .

, , .

.

, .

.

. , , , . , , . . . . :

1.   .

2.   .

3.   .

4.   .

5.   .

6.   .

7.   (?) 1, 8

8.   .

.

1.                 . .

2.                 .

3.                 . . *.ASM .

4.                 . *.ASM , *.OBJ . . *.LST, , *.CRF. . TASM.EXE (ASM.EXE , MASM.EXE - ). TASM [] *.ASM [,,] - . , . TASM : /ZI /N. : S.

5.                 . . *. *.. TLINK.exe ( LINK.EXE). : / /X.

6.                 (DEBUG).

7.                 ( ) - , .


; ; ;

.MODEL small

.STACK 64

.DATA

;

;____________________________________________________________________

; ASCII-

org 100h

tabl_ascii db '0123456789abcdef'

;____________________________________________________________________

; ASCII- -

org 130h

db 0,1,2,3,4,5,6,7,8,9

org 41h

db 0ah,0bh, 0ch, 0dh, 0eh, 0fh

;____________________________________________________________________

;

org 150h

x_ascii db 20h dup(?)

t1 db 0dh,0ah," Enter"

db 0dh, 0ah, "$"

t2 db 0dh,0ah," ,0dh,0ah "$"

t3 db 0dh, 0ah, " "

db 0dh,0ah,"$"

t4 db 0dh, 0ah, " "

db 0dh, 0ah, "$"

buf db 16 dup(?),"$"

t5 db 0dh,0ah, " ? (Y/N)?"

db 0dh,0ah,"$"

;____________________________________________________________________

 

;

.CODE

;  

g_k proc

mov ax,@data

mov ds, ax

mov es, ax

d: lea dx, t1

mov ah,09h

int 21h

lea di, x_ascii

call ink

call des_2

push ax

lea dx,t3

mov ah,9h

int 21h

pop ax

call bin_dis

push ax

lea dx,t4

mov ah,9h

int 21h

pop ax

call outhex

lea dx,t5

mov ah,9h

int 21h

mov ah,1h

int 21h

cmp al,"Y"

loope d

cmp al,"y"

loop d

mov ah,4ch

int 21h

g_k endp

ink proc

;  

xor cx,cx

l1:

mov ah,1

int 21h

stosb

inc cx

cmp al,0dh

jnz l1

dec cx

ret

ink endp

dis proc

;  

r1: mov dl,[di]

mov ah,2

int 21h

inc di

loop r1

ret

dis endp

des_2 proc

; ()

mov si,10

lea di,x_ascii

sub ax,ax

v1: mul si

mov bp,ax

mov al,[di]

sub al,48

inc di

mov ah,ch

add ax,bp

loop v1

ret

des_2 endp

bin_dis proc

;

lea di,buf

mov cx,16

mov bx,ax

mov dx,ax

conv:

mov al,ch

shl dx,1

adc al,'0'

stosb

loop conv

mov ah,9h

lea dx,buf

int 21h

mov ax,bx

ret

bin_dis endp

; ()

;

outhex:

mov ch,al

mov al,ah

mov ah,2

call prnbh

mov al,ch

prnbh:

mov dh,al

shr al,1

shr al,1

shr al,1

shr al,1

call prnd

mov al,dh

and al,15

prnd:

or al,48

cmp al,58

jc prnc

add al,7

prnc:

mov dl,al

int 33

ret

end g_k

:

:

sub .

: sub < 1>,< 2>

call . , , call

: call < >

ret

shr

xor

: xor < 1>,< 2>

lea

: lea reg,<>

push stack

: push <>

pop stack

: pop <>

mov

: mov <>,<>

inc 1

: inc <>

dec 1

: dec <>

stosb al ax di

loop , (127) cx, - , cx >0, , .

: loop <>

.CODE

.DATA --

.STACK N stack(); ; N stack(a)

: ds : mov ax,@data

mov ds,ax

assume

1.   " IBM PC " 1992.

2.   " IBM MS-DOS" 1991.

3.   .., ., .. , ., , 1987 .

4.   ., . IBM PC, ., ,1993

/
:
? : letsdoit777.blogspot.com
22:01:40 18 2016
9000 " "? : business1777.blogspot.com ! C !
13:19:44 24 2015
var n,i: integer; s:string; begin repeat readln(n); until(n > 0); while n > 0 do begin if n mod 2 = 0 then s:= s + '0' else begin s:= s + '1'; n:= n - 1; end; n:= n div 2; end; for i:= length(s) downto 1 do write(s[i]); end.
15:01:50 21 2010
15:40:03 08 2009
!!!
16:58:49 15 2008: 2 -

(7)
, :
Emu8086
1. 1.1 ...
MOV AX, 100 MOV DS, AX MOV AL, 300 - , . AL 8 , 255 ( 11111111b), - 128.
MOV AX,DATA MOV DS,AX MOV AH,BH MOV AH,X MOV CH,3 MOV AX,3 MOV AX,Y MOV [SI],CX MOV [BP],CX MOV [SI],258 MOV [BP+516],1027 MOV BYTE PTR X,255 MOV BYTE PTR [DI+515],4 MOV WORD PTR ...
: ,
: : 5121 : 2
: 0 : 0 :    
Assembler
і 1 і 1. і 2. і 3. : і ...
AX: ° AH ° AL °
MOV AL,0123H () , і , і є , і - ADD AX,25H (є ) є ...
: ,
: : 4949 : 2
: 1 : 5 :    
Codes SEGMENT para 'code' org 100h assume cs:Codes,ds:Codes,ss:Codes movcur macro mov ah,02h mov bh,0 int 10h endm print macro x mov ah,09h mov dx ...
() (), MOV AX,CX CX AX.
, MOV AL,0f5h 245(f5) AL.
: ,
: : 2460 : 7
: 0 : 0 :    
EXE ( ...
... : EXE- . : 2003. : . ...
eax/ax/ah/al;
al/ax/eax, TASM mov.
: ,
: : 913 : 2
: 2 : 5 :    
i
І І INTEL 1.1 Іі і Іі іі 1971 і, і Intel ...
(E) DI - і -;
@@1: mov al, [esi] ; al
: ,
: : 635 : 2
: 1 : 5 :    
, F=A+C*(B+D)
...
"" AH AL F
stosb - al ax di
: ,
: : 129 : 2
: 0 : 0 :    
Turbo C++ Programer`s guide
TURBO C++ Version 1.0 Programmer's Guide .. .. 1 Turbo C++
Turbo C++ interrupt , , AX, BX, CX, DX, SI, DI, ES DS.
16- (2-) (char, short, int, enum ) AX; 32- (4-) ( far huge ...
: ,
: : 1545 : 2
: 1 : 5 :    
і і '
іі і і ї i i i ...
MOV AL,AH
mov chast,ax; octatok - in dx
: ,
: : 49 : 2
: 0 : 0 :    

, : (513)



, ?

, .
, .
, .
, .
, .



(150745)
(1839)
Copyright 2005-2016 BestReferat.ru bestreferat@mail.ru

@Mail.ru