boring programming Flashcards
Imperative programming?
Where we tell the computer what to do
Add subtract store and load LMC instructions (3 letters(
ADD
SUB
STA
LDA
LMC branch instructions
BRA - ALWAYS
BRZ - IF ZERO
BRP - IF POSITIVE
LMC PRINT, READ INSTRUCTIONS
INP
OUT
LMC end program instruction
HLT (halt)
LMC DAT instruction what is it
It’s normal asm like data in the bss/data section
notify assembler it’s a static piece of data like a string in the exe
LMC where are labels put
Before any instruction
Direct vs immediate addressing
Direct is normal like pointer deference
Immediate is not really addressing just means load the actual data not the address (deferencing the pointer is just getting the pointer int value
Indirect vs indexed addressing
Indirect is double pointer deferenencing (ie LDA 6 would mean load the value from the pointer which the pointer is at memory location address 6)
Indexed is when you have an index register and then can increment it etc
What tags are needed for a HTML page with a title, a heading and some paragraph
Head,body,title,h1,p
What are how use the IMG tag HTML
<img></img>
How to embed link in html
<a>CLICK ME</a>
What does html ordered list look like and how
Numbered list of the data
<ol> is used and <li> for each item both are terminated</li></ol>
HTML unordered list
with <li> uses bullet points</li>
What tag includes CSS into html
Style