Розробка комп'ютерних навчальних засобів з обраної предметної області, Детальна інформація
Розробка комп'ютерних навчальних засобів з обраної предметної області
mov dh, 10 {coordinates}
mov dl, 10
int 10h {printing}
pop es {restore registers}
pop bp
end;
end;
procedure a4; assembler;
const
color: byte = 16*3+14; {color}
str: array [0..4] of char
= 'slawa'; {string to print}
strlen: word = 5; {length of that string}
asm
mov ax, 0B800h {mov es, 0B800h}
mov es, ax
mov cx, strlen {cx - counter of chars}
mov si, offset str {ds:si - text}
xor di, di {es:di - video memory}
@a:
lodsb {load byte from ds:si}
stosb {store byte to es:di}
mov al, color
stosb {store color to es:di}
loop @a {while there is more chars to print}
end;
begin
textattr:=7; clrscr; a1; readkey;
textattr:=7; clrscr; a31; writeln; textattr:=7; clreol; readkey;
textattr:=7; clrscr; a32; readkey;
mov dl, 10
int 10h {printing}
pop es {restore registers}
pop bp
end;
end;
procedure a4; assembler;
const
color: byte = 16*3+14; {color}
str: array [0..4] of char
= 'slawa'; {string to print}
strlen: word = 5; {length of that string}
asm
mov ax, 0B800h {mov es, 0B800h}
mov es, ax
mov cx, strlen {cx - counter of chars}
mov si, offset str {ds:si - text}
xor di, di {es:di - video memory}
@a:
lodsb {load byte from ds:si}
stosb {store byte to es:di}
mov al, color
stosb {store color to es:di}
loop @a {while there is more chars to print}
end;
begin
textattr:=7; clrscr; a1; readkey;
textattr:=7; clrscr; a31; writeln; textattr:=7; clreol; readkey;
textattr:=7; clrscr; a32; readkey;
The online video editor trusted by teams to make professional video in
minutes
© Referats, Inc · All rights reserved 2021