Assembler Test Essay, Research Paper
Nick Robertson
Assembeler Class: Take home test
1.What are the four steps of CPU execution are:
1) Fetch op code or immeiate data
2) increment IP
3) decode op and or execute
4) go to step 1
2.List all the 8086 register state their prupose. Group them
by general purpose, pointing, and segment. They are:
General Registers:
axAccumilator (general purpose storage)
bxPointer to memory
cxCounting (input/output addresses)
dxData (store info about peripherals
The main purpose of the above started registers is to contain
the initaial data for, and the reslts of, arithmetic or logical
instructions.
Pointing Registers:
diDdiestintaion index
siSource index
spstack pointer
bpBase pointer
The main purpose of the above stated registers is to point
to other areas in memory.
Segment-
sc Code segment
dsData segment
ss Extra segment
The main purpose of the above stated registers is to hold
segments of information.
3) List all the 8086 flags and state their purpose. Group them by
by state or control, they are:
State Flags:
State flags are so named becouse their values are influenced
by the precious intructions and reflect some pecularities as a result.
AFAuxiliary CarryFlag
CFCarry Flag
OFOverflow Flag
PDParity Flag
SFSign Flag
ZFZero Flag
Control Flag:
Control Flags are so named becouse their pupose is to control
the execution of certain intructions.
IFInterrupt Flag
TFTrap Flag
DFDirection Flag
4) Define Ram and Rom
ROM – Read Only Memory
-Perminent
- non-volitale ( is kept at shut-down)
RAM – Random Access Memory
-Changable
-Volitable ( is not kept at shut-down)
5)State and define the three busses used by the CPU.
also state if the bus is unidirectional or bidirectional.
They are:
Address-Bidirectional
hardware
Data -Bidirectional
Sends info ( Carrys info as well)
Control-Unidirectional
Mouse, Keyboard, etc……
6)A program that will take a single digit numeric
input from the computer, convert it to BCD, ass the number,
and output the result to the monitor.
.Model
.stack 100h
.code
Start:
mov ah, 01h
Int 21h
mov ax, 001h
cmp al, 09h
Jnz convert; jnz = jump not zero
mov ax, 4C00h
int 21h
end start
Convert
add ax, 01h; add 1 if over 9
ret
7)State the difference between a macro and a procedure.
Macro – Copies code a compilating / inserts
Procedure – Jumps to instruction in memory
8)Give exaples of the following addresing modes:
Register – mov ax, cx
Indirect – mov ax, 6000h
mov ds, ax
Direct – mov ax, [0123h]
Indexed – mov ax, [bx + di]
9)Define the following assembler directives:
Extern – External to current code
Public – Can be called (internal)
Global – Combination of both
10)For every ‘push’ there is a ‘pop’
11)Write a program that will encrypt a string by XORing one character
with the next character in the string.
.Model tiny
.Data
grab db “this”
.code
start:
mov ax, @ data
mov ds, ax
lea bx, grab
lea si, grab
stinc:
inc si
xor [bx][si];[T][H]
inc bx
comp si, 03h
jne stinc
mov ax 4ch
int 21
end start
12)Write a program that will decrypt the program you just wrote.
.Model tiny
.Data
grab db “this”
.code
start:
mov ax, @ data
mov ds, ax
lea bx, grab
lea si, grab
lea dx, toinc
add bx, 04h
add si, 04h
stinc
dec si
xor [bx][si]
dec bx
cmp si, dx
jne stinc
int 21
end start
13)State the address 5F32A of the next op-code as a segmented address, a logical address. Give the offset address and the segment address.
5F32and shift to right
500000= F32A
14)List all the base-pointers registers and give the segmants that they can use. Label the default segmen register with each. Don’t forget about IP
– Ip must pair with cs, sp with ss becouse these regiesters are involved in automatic CPU operations.Then you can pair the general-purpose data pointing registers BX, Di, and SI with the data segment register DS
– The IP offset register is always asses to the CS segment register when addressing code memory. There is override available to the programmer.
– The BP or SP offset register is automatically added to the SS segment register when stack opertions are in progress. The programmer may not override the automatic selection of SS with SP. The programmer may override the automatic selection of the DS register and use anyone of the other three segment registers CS, ES, or SS.
– Any offset quantity using registers BX, DI, and Si is automaticlly added to the DS base register. The programmer may override the automatic selection of the DS register and use any one of the other three segment registeres CS, ES, or SS.
– The offset register DI is automaticlly used with the ES base register when stringoperations are taking place. The programmer may not override the selection of Di with ES when string operations are done.
15)Give an example of a struct that will store the data for a person age,
height, and weight.
HEALTH STRUCT
age dw 0h
height+dw 0h
weight+dw 0h
health ends
Другие работы по теме:
The Great Gatsby Essay Research Paper Expository
The Great Gatsby Essay, Research Paper Expository Paragraph Characterization Point to be proved: Jay Gatsby is a very determined individual. He is very determined to get Daisy Buchanan back into his life.
Two Hearted River Essay Research Paper In
Two Hearted River Essay, Research Paper In this story Nick and the fish at the bottom of the river share many similarities. Of course the do not look alike but they seem to think the same in a way. They both have reasons to be where they are.
Hemingway And Theme Essay Research Paper Ernest
Hemingway And Theme Essay, Research Paper Ernest Hemingway uses many themes and subtle nuances, to bring his short stories alive, with imagination and adventure. These short stories all revolve around certain things that are present in each of his stories. In Another Country, The Big Two Hearted River, and Indian Camp, all contain similarities, which are sometimes very evident, and very subtle.
Gatsby Essay Essay Research Paper In the
Gatsby Essay Essay, Research Paper In the book, The Great Gatsby, Francis Scott Fitzgerald?s continuous use of the Doctor T.J. Eckleburg sign symbolizes an inept God. He also shows us that even though God is watching; bad things still happen. The Great Gatsby showed a corrupt society under God?s eyes. When Nick followed Tom, to meet Tom?s mistress, the only thing that Nick really noticed was the sign starring at him as shown in this quotation. “I followed him over a low whitewashed railroad fence, and we walked back a hundred yards along the road under Doctor Eckleburg?s persistent stare.” (24) Nick felt a little uneasy with this sign starring at them.
Batch Essay Research Paper Discuss your stately
Batch Essay, Research Paper Discuss your stately for testing this algorithm, making sure that you include any problems that you think you may encounter. Also give examples of test data and expected results of your test data.
The Great Gatsby Essay Research Paper Nick
The Great Gatsby Essay, Research Paper Nick Carroway and Jay Gatsby are like an orange and an apple; either being what you want. Oranges and apples have similarities; such as, being a fruit, but have contrasting attributes, like apples are non-citric and oranges are full of citric that s why they never go brown.
Nick And The River From Hemingway
’s “Big Two-Hearted River” Essay, Research Paper Nick and the River by Kirk Wintermute In Ernest Hemingway’s short story “Big Two-Hearted River,” there are very few obvious relationships. But the
Nick Adams Tribulations Essay Research Paper In
Nick Adams Tribulations Essay, Research Paper In the Short Stories by Ernest Hemingway a young boy by the name of Nick Adams goes through his life?s tribulations slowly learning and experiencing new things. Nick Adams is a young boy that is very na?ve and still has many things to learn before he is considered a true man.
Manhood As Seen By Enerst Hemm Essay
, Research Paper Manhood is a reoccurring theme in the short stories of Ernest Hemingway. In these stories we wittiness Nick Adam’s viewpoint on what a man should be.
Indian Camp Essay Research Paper Ernest Hemingway
Indian Camp Essay, Research Paper Ernest Hemingway’s “Indian Camp” is a story in which a man looks back upon a very influential event in his childhood. The story tells of a young boy named Nick, who watches as his father aids in the birth of a young Indian child. The circumstances that arrive during this event shape the “older Nick’s” perception of his father, as well as life and mortality.
Religion Essay Research Paper Religion912
Religion Essay, Research Paper Religion912 There are many different cultures and religions in this world. I was assigned to attend a different denomination church then my own. I attended St.Nick s liturgy. St.Nick s is a Greek Orthodox Church.
Hemmingway 2 Essay Research Paper The themes
Hemmingway 2 Essay, Research Paper The themes of alienation and isolation go hand in hand with the role nature plays in Ernest Hemmingway s short story The Big Two-Hearted River. Nick Adams, whose life and personality parallels that of Hemmingway, constantly retreats to nature to find a quiet place of reflection and self-examination.
Nick Carraway Essay Research Paper Nick one
Nick Carraway Essay, Research Paper Nick, one of the most sophisticated characters in Fitzgerald’s “The Great Gatsby”, makes a potent narrator due to the fact that his characteristics are a key to analyzing the other characters. As the novel proceeds Nick is the most reliable source for the reader to create his/her opinion about the other characters.The most significant reason why Nick appears as the narrator is because he supplies the reader with a contrast to the other characters in the book.
Gatsby Essay Essay Research Paper Gatsby EssayWho
Gatsby Essay Essay, Research Paper Gatsby Essay Who is the real hero of the novel Nick or Gatsby ? discuss In the novel the great Gatsby we can look at two people as the heros, but they are both heros in a different manner . Nick could be seen as a hero because of the way he struggled to help Gatsby realize his dream and the other hero is Gatsby himself who we can see as a hero because of the way he took the blame for the woman he loved and she didn t even acknowledge him after his death .
Indian Camp Essay Research Paper Indian CampAnalysis
Indian Camp Essay, Research Paper Indian Camp Analysis of Nick?s Father In Earnest Hemmingway?s story Indian Camp, from his first book In Our Time, there is a character named Henry refereed to in this story as Nick?s father. Nick?s father is a doctor. A closer look at Nick?s father reveals that he is quite a paradoxical figure.
Nick Carraway Essay Research Paper Nick Carraways
Nick Carraway Essay, Research Paper Nick Carraway?s view on Gatsby In the book The Great Gatsby by F. Scott Fitgerald, the narrator is Nick Carraway. We trust the narrator. We take on his perspective. He becomes our eyes
Nick Carraway Essay Research Paper Nick Carraway
Nick Carraway Essay, Research Paper Nick Carraway In many novels there are controversial characters, or charactersthat cause controversy or problems. As in Fitzgerald s The Great Gatsby,there are several characters that fit this description. Both Myrtle Wilson andJay Gatsby cause conflict between Daisy and Tom Buchanan.
Nick Adams In Hemingway
’s Stories Essay, Research Paper The Nick Adams stories were my favorite of the collection because I got to know Nick through the reading. I started to understand Nick and I could anticipate the actions and feelings that he
American Dream Essay Research Paper nameAP EnglishMrs
American Dream Essay, Research Paper name A.P. English Mrs. Smith Gatsby Essay The Great Gatsby The Characters in the book are static characters because everything that happens to them does not affect how they act on any permanent basis. Gatsby’s personality never changes from his smug, rich, party host for more than a hour or two.
Faust Essay Research Paper By Nick CarrollLet
Faust Essay, Research Paper By Nick Carroll Let my work benefit all!! Pryor High School Students: If you plagiarize this, you will most likely get caught, so I don’t advise doing so. Have Fun!!
The Great Gatsby The Question Of Nick
Carraway’s Integrity Essay, Research Paper The Great Gatsby: The Question of Nick Carraway’s Integrity In pursuing relationships, we come to know people only step by step.
Great Gatsby Quest Essay Research Paper Nick
Great Gatsby Quest Essay, Research Paper Nick and Gatsby s Quest In the novel The Great Gatsby, by F. Scott Fitzgerald, the thematic quest for the Holy Grail is shown through the conduct of Jay Gatsby and Nick Carraway. Gatsby s crusade is to attain Daisy Buchanan s love. While Nick s quest is to discover what matters in life and to live his life accordingly.
Nick Vs Tom Essay Research Paper NICK
Nick Vs. Tom Essay, Research Paper NICK vs. TOM There are numerous types of people in this world. Apart from physical features, it is the characteristics of a person that makes him/her unique. Nick Carraway the narrator of The Great Gatsby has characteristics, which are the total opposite of those of Tom Buchanan, his cousin-in-law.
Different Learning Styles Essay Research Paper In
Different Learning Styles Essay, Research Paper In our English class we took a test on what kind of learning style characteristics we have. Learning the different style writings that I have helped me discover mor of what I’m about. When people learn more about their learning styles, they can take what they have learned and turn it toward your job, but mostly just toward life in general.
His Bright Light Danille Steel Essay Research
Paper In Danielle Steel’s His Guiding Light, Steel expressed that its better to try, and then fail, then to have never have tried at all. Steel’s son Nick Traina was a good person; ” He was not a bad kid he was a sick kid.” He tried to do his best and wanted people to love him for whom he was. “I want people to know they can believe in me and trust me.” Steel said, “All I wanted to do was to help him.” Nick was sick and needed help and her heart was filled with love and hope for him.
How To Pass A Drug Test Essay
, Research Paper How To Pass A Drug Test. To pass a drug test it is very important to estalish the length of time which the metabolties will be in your body. If you can establish this and then cease
The Great Gatsby Morality And Gatsby Essay
, Research Paper The Great Gatsby: Morality and Gatsby Morality is a very controversial issue. That is one of the reasons what people are interested in reading about it. Morality can lead to many questions
Great Gatsby Essay Essay Research Paper The
Great Gatsby Essay Essay, Research Paper The Great Gatsby Essay In The Great Gatsby, there are three illicit relationships: Gatsby and Daisy, Nick and Jordan, and Tom and Myrtle. In some ways they are similar, and in some ways each is unique. In this essay, I will compare and examine each of the couples, and try to give some insight as to why none of the relationships worked out.
My Name michelle Essay Research Paper Once
My Name (michelle) Essay, Research Paper Once I looked up the definition of my name. It said ?Who is like god?, and it is also the fem. version of Michael. When I was born my name wasn?t as simple as Michelle, it was Michelle-Leann, and later