This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* midterm.asm | |
* | |
* Created: 6/20/2014 11:41:46 AM | |
* Author: Josh | |
*/ | |
.org 0x0 | |
ldi r29,0x00 | |
ldi r30,0x10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* midterm.asm | |
* | |
* Created: 6/20/2014 11:41:46 AM | |
* Author: Josh | |
*/ | |
.org 0x0 | |
ldi r30,0x00 | |
ldi r31,0x10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dseg | |
.org 0x2000 | |
output: .byte 1 ; insert comment | |
.cseg | |
.org 0x0 | |
jmp main ; partial vector table at address 0x0 | |
.org 0x200 ; main entry point at address 0x200 (step though the code) | |
main: ldi ZL,low(2*table) ; insert comment | |
ldi ZH,high(2*table) ; insert comment | |
ldi r16,celsius ; insert comment |
NewerOlder