Skip to content

Instantly share code, notes, and snippets.

View nmepntgrm's full-sized avatar

Eduard Tudor nmepntgrm

View GitHub Profile
#include <iostream>
#include <string>
using namespace std;
struct Node
{
string info;
struct Node *link;
}*start;
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<stdio.h>
class Lex_Ana
{
public :
int i,j,k,ti,oprfl,delfl,keyfl,Litfl,cLitfl,ptfl,tfl,mxIdeni,Liti,mxIdenj,mxOpri,mxOprj,mxDeli,Erri;
int uqIdi,uqOpi,uqDei,defOpi,defKeyi,cLiti;
.model small
.stack 100h
.data
q1 db '1.What is the input register of function INT 10h / AH = 0Eh? a. AL b. BL $'
q2 db '2.What is the output register of function INT 21h / AH = 09h? a. AX b. DX $'
q3 db '3.Which function returns the control to Operating System? a. INT 10h/AH=0eh b. INT 21h/AH=4C00h $'
q4 db '4.Which assembly operation puts a value into stack? a.push b.pop $'
q5 db '5.Which assembly operation removes a value from topmost of stack? a. pop b.push $'
q6 db '6.Which function sets the video mode? a. INT 21h/AH=4C00h b. INT 10h / AH = 0 $'
.model small
.stack 100h
.data
q1 db '1.What is the input register of function INT 10h / AH = 0Eh? a. AL b. BL $'
q2 db '2.What is the output register of function INT 21h / AH = 09h? a. AX b. DX $'
q3 db '3.Which function returns the control to Operating System? a. INT 10h/AH=0eh b. INT 21h/AH=4C00h $'
q4 db '4.Which assembly operation puts a value into stack? a.push b.pop $'
q5 db '5.Which assembly operation removes a value from topmost of stack? a. pop b.push $'
q6 db '6.Which function sets the video mode? a. INT 21h/AH=4C00h b. INT 10h / AH = 0 $'
Case Study
1.Create a program that will ask
the user to input their name, course
ans section, student number Then
Display it again to the screen
2. Create a program that will allow the user
to input a string. Display the reverse input
string if the user input a period.
.model small
.stack 100h
.data
nameInput db 'Name: $'
courseInput db 'Course: $'
sectionInput db 'Section $'
namex db 08h, ?,08 DUP ('$')
sectionx db 08h, ?,08 DUP ('$')
coursex db 08h, ?,08 DUP ('$')
newline db 10,13,'$'
.model small
.stack 100h
.data
nameInput db 'Name: $'
courseInput db 'Course: $'
sectionInput db 'Section $'
namex db 08h, ?,08 DUP ('$')
sectionx db 08h, ?,08 DUP ('$')
coursex db 08h, ?,08 DUP ('$')
newline db 10,13,'$'
@nmepntgrm
nmepntgrm / banks.c
Created December 31, 2011 14:43
:3
#include <math.h>
#include <sys/time.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
double L ,o ,P
,_=dt,T,Z,D=1,d,
s[999],E,h= 8,I,
J,K,w[999],M,m,O
,n[999],j=33e-3,i=
1E3,r,t, u,v ,W,S=
HAHAHAHAHHAHA