Files
templates/Labv8.cpp
Mark Zheleznyakov be2b9502d1 init
2024-09-07 08:49:36 +03:00

69 lines
1.4 KiB
C++
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Labv8: Ass, and Ci functions
˜ ¡«®­ ¯à®£à ¬¬ë ¤«ï à ¡®âë á ¢¨¤¥®á¨á⥬®©
’¥ªáâ®¢ë© à¥¦¨¬
*/
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <iostream.h>
void page(char a) // “áâ ­®¢ª  ­®¬¥à   ªâ¨¢­®© ¤¨á¯«¥©­®© áâà.
{
asm {
mov ah,0x05
mov al,a
int 0x10
}
}
void main()
{
// ãáâ ­®¢ª  ¢¨¤¥®à¥¦¨¬ 
asm{
mov al,02h
mov ah,00h
int 10h
} page(0);
clrscr();
// ‚뢮¤ ⥪áâ  á।á⢠¬¨ ‘¨
for(char n = 1; n <= 100; n++)
// -- §¤¥áì á ¬ ¢ë¢®¤ -
// ‚뮤 ⥪áâ  ¢ ०¨¬¥ ­¥¯®á।á⢠ࠡ®âë á ¢¨¤¥®¯ ¬ïâìî
page(0);
asm mov cx,1000 // ‡ ¤ ¥¬ ª®«¨ç¥á⢮ ᨬ¢®«®¢
asm mov di,0 // Ž¡­ã«ï¥¬ ¨­¤¥ªá
e1: asm { add di, 2
mov ax, 0xb800 // Ž¯à¥¤¥«ï¥¬ ­ ç «ì­ë©  ¤à¥á
mov es, ax
mov al, cl
mov es: [di],al // <20>¥à¥áë« ¥¬ ç¥â­ë© ¯¥à¢ë© ¡ ©â ¢ ¢¨¤¥®¯ ¬ïâì
mov al, 4
mov es: [di+1],al // <20>¥à¥áë« ¥¬ ­¥ç¥â­ë© ¢â®à®© ¡ ©â
};
asm loop e1
getch();
// ‡ ¤ ­¨ï
// 1 ‚뢥¤¨â¥ ⥪áâ á ¨á¯®«ì§ ‘¨.
// <20> áªà á⥠¥£® §¥«¥­ë¬ 梥⮬ á ¨á¯®«ì§®¢ ­¨¥¬ €áá.
// Ž¯à¥¤¥«¨â¥ ¢à¥¬ï ¢ë¢®¤  ¢ ®¡®¨å á«ãç ïå
// 2 <20>à®â¥áâ¨àã©â¥ à §¬¥à ⥪á⮢®© ¤¨á¯«¥©­®© áâà ­¨æë.(<28> ¯¨è¨â¥
// ¯à®£à ¬¬ã ­  €áá ¢ë¢®¤  ᨬ¢®«®¢ ¢ ­ ç «¥ ¨ ¢ ª®­æ¥ ¤¨á¯«¥©­®© áâà ­¨æë)
// 3 ‚뢥¤¨â¥ ⥪áâ ­  ¢â®àãî ¤¨á¯ áâà ­¨æã
// 4 Žà£ ­¨§ã©â¥ ¯¥à¥ª«î祭¨¥ áâà ­¨æ
/* while (bioskey(1) == 0)
{
page(0); delay(1000);
} */
return;
}