COMPSCI 1210 LAB A

studied byStudied by 26 people
5.0(1)
get a hint
hint

A programming language that can be directly understood and obeyed by a machine or computer without any translation.

1 / 64

Tags and Description

65 Terms

1

A programming language that can be directly understood and obeyed by a machine or computer without any translation.

Machine Language

New cards
2

a low-level programming language for a computer or other programmable device specific to a particular computer architecture in contrast to most high level programming languages, which are generally portable across multiple systems.

Assembly language

New cards
3

simple computer model

knowt flashcard image
New cards
4

The __ connects the various components of a computer.

system bus (shown in yellow)

New cards
5

The __is the heart of the computer, most of the computations occur inside the CPU.

CPU

New cards
6

__ is a place to where the programs are loaded in order to be executed.

RAM

New cards
7

Why Assembly Language? (enumerate all the benefits)

  • Speed

  • Space

  • Capability

  • Knowledge

New cards
8

Assembly language programs are generally the fastest programs around.

Speed

New cards
9

Assembly language programs are often the smallest

SPACE

New cards
10

You can do things in assembly which are difficult or impossible in HLLs

Capability

New cards
11

Your knowledge of assembly language will help you write better programs, even when using HLLs

Knowledge

New cards
12

Representation of Numbers in Binary

  • 1 BIT - (either 1 or 0)

  • NIBBLE(4) - 1 nibble is equal to four bits or half a byte (maximum value of Fh, 15 decimal).

  • 1 BYTE(8) -

    1 byte is equal to 8 bits or 2 nibbles (maximum value FFh, 255 decimal)

  • 1 WORD (16) -

    1 word is equal to 2 bytes

<ul><li><p><strong>1 BIT</strong> - (either 1 or 0)</p></li><li><p><strong>NIBBLE(4)</strong> - 1 nibble is equal to four bits or half a byte (maximum value of Fh, 15 decimal).</p></li><li><p><strong>1 BYTE(8) -</strong></p><p>1 byte is equal to 8 bits or 2 nibbles (maximum value FFh, 255 decimal)</p></li><li><p><strong>1 WORD (16) -</strong></p><p>1 word is equal to 2 bytes</p></li></ul>
New cards
13

__ are a place in the CPU where a number can be stored and manipulated.

Registers

New cards
14

There are three sizes of registers

  • 8-bit intel 8008,

  • 16-bit 8086 architechture,

  • 32-bit 80386 architecture.

New cards
15

4 different types of registers;

  • General Purpose

  • Segment

  • Stack

  • Index

New cards
16

General Purpose Registers

  • AX

  • BX

  • CX

  • DX

  • SI

  • DI

  • BP

  • SP

New cards
17

the accumulator register (divided into AH / AL). ·

AX

New cards
18

the base address register (divided into BH / BL). ·

BX

New cards
19

- the count register (divided into CH / CL). ·

CX

New cards
20
  • the data register (divided into DH / DL). ·

DX

New cards
21

destination index register.

· DI

New cards
22

source index register

SI

New cards
23

- base pointer.

· BP -

New cards
24

- stack pointer

SP

New cards
25
  • Sometimes called pointer registers

  • Mainly used for string instructions

Index Registers

New cards
26

Index Registers:

  • SI

  • DI

  • IP

New cards
27

__are used as source index for string operation

Source index

New cards
28

__are also used for string operation

Destination index

New cards
29

___cannot be manipulated directly because it stores the address of the next instruction

Instruction pointer

New cards
30

Stack Registers:

  • • BP

  • SP

New cards
31

__ is similar to BX, generally used to address and access local variables in a process.

– Base pointer

New cards
32

__maintains the program stack for arithmetic computations

Stack pointer

New cards
33

specific areas defined in a program for containing data, code and stack.

Segment Register

New cards
34

three main segments of Segment register:

  • Code Segment

  • Data Segment

  • Stack Segment

New cards
35

It contains all the instructions to be executed.

Code Segment

New cards
36

It contains data, constants and work areas.

Data Segment −

New cards
37

It contains data and returns addresses of procedures or subroutines.

Stack Segment −

New cards
38
  • an area of memory which you can save and restore values too.

  • This is an area of memory that is like a stack of plates

stack

New cards
39

__ like data structure in the memory in which data can be stored

Stack

New cards
40

the last one you put on is the first one that you take off.

LIFO or FILO

New cards
41

If another piece of data is put on the stock, it grows __.

downward

New cards
42

the stack starts at a __ and grows downwards.

high address

New cards
43

The element that is higher in the stock have ___than those on the bottom

lower address

New cards
44

Stock is comprised of elements that are added and removed with two operations

Push and Pop

New cards
45

PUTS A PIECE OF DATA ONTO THE TOP OF THE STACK.

Push

New cards
46

PUTS THE PIECE OF DATA FROM THE TOP OF THE STACK INTO A SPECIFIED REGISTER OR VARIABLE.

Pop

New cards
47

syntax for push

knowt flashcard image
New cards
48

syntax for pop

knowt flashcard image
New cards
49

3 types of operand

  • Immediate

  • register

  • memory

New cards
50

___is a number which will be known at compilation and will always be the same

Immediate operand

New cards
51

___ any general purpose or index register. Example AX or SI.

Register operand

New cards
52

___is a variable which is stored in memory.

Memory operand

New cards
53

ASSEMBLY INSTRUCTION

New cards
54

Most instructions are made up of three characters

  • operand

  • comma

  • another operand

<ul><li><p>operand</p></li><li><p>comma</p></li><li><p>another operand</p></li></ul>
New cards
55

moves a value from one place to another.

MOV

<p>MOV</p>
New cards
56

__ calls a DOS or BIOS function which are subroutines to do things that we would rather not write a function

INT

<p>INT</p>
New cards
57

Most interrupts have more than__, this means that you have to pass a number to the function you want.

one function

New cards
58

How to declare a data

knowt flashcard image
New cards
59

You can only put bytes into __ registers and word into _ registers

  • 8-bit

  • 16-bit

New cards
60

add the contents of one number to another

ADD -

<p>ADD -</p>
New cards
61

subtract one number from another

SUB —

<p>SUB —</p>
New cards
62

multiplies two unsigned integers (always +)

MUL -

<p>MUL -</p>
New cards
63

multiplies two signed integers (either + or -)

IMUL —

<p>IMUL —</p>
New cards
64

divides two unsigned integers (always +)

DIV -

<p>DIV -</p>
New cards
65

divides two signed integers (either + or -)

IDIV —

<p>IDIV —</p>
New cards

Explore top notes

note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 66 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 42 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 29 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 93 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11922 people
Updated ... ago
4.8 Stars(78)

Explore top flashcards

flashcards Flashcard38 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 133 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard41 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard35 terms
studied byStudied by 168 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard255 terms
studied byStudied by 81 people
Updated ... ago
4.2 Stars(5)
flashcards Flashcard44 terms
studied byStudied by 30 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard39 terms
studied byStudied by 197 people
Updated ... ago
5.0 Stars(1)