Difference between revisions of "CSC231 Homework 1 2014"
(Created page with "--~~~~ ---- <center> <font size="+2">Page under construction!</font> </center> <P> <center> 300px </center>") |
m (Thiebaut moved page CSC231 Homework to CSC231 Homework 1 2014) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
---- | ---- | ||
− | <center> <font size="+2">Page under construction!</font> </center> <P> <center> [[File:UnderConstruction.jpg|300px]] </center> | + | <!--center> <font size="+2">Page under construction!</font> </center> <P> <center> [[File:UnderConstruction.jpg|300px]] </center--> |
+ | |||
+ | <br /> | ||
+ | |||
+ | <bluebox> | ||
+ | This assignment is due on 9/23/14 @ 11:55 p.m. on Moodle. | ||
+ | </bluebox> | ||
+ | <br /> | ||
+ | =Problem 1= | ||
+ | <br /> | ||
+ | Go to Moodle and answer the questions in the Homework 1, Problem 1 section. This section deals with binary, decimal, and hexadecimal number systems. Do not use a calculator or Web-based converter. You can use your notes, and you should work out the answers on paper. | ||
+ | <br /> | ||
+ | |||
+ | =Problem 2= | ||
+ | <br /> | ||
+ | Write an assembly language program that outputs this pattern: | ||
+ | |||
+ | A | ||
+ | AA | ||
+ | AAA | ||
+ | AAAA | ||
+ | AAAAA | ||
+ | BBBBB | ||
+ | BBBB | ||
+ | BBB | ||
+ | BB | ||
+ | B | ||
+ | |||
+ | Your program should have as small a data section as you can make it. Your grade will depend on the size of your data section. The smaller the data section, the closer to 100. | ||
+ | |||
+ | Submit your program to Moodle's Homework 1, Problem 2 section. | ||
+ | |||
+ | ;Notes: | ||
+ | :1) The fact that the letters 'A' and 'B' are printed is important. Look at their Ascii code in the Ascii table. | ||
+ | :2) A string is just a collection of bytes. These bytes are numbers. Nothing special about numbers... | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | [[Category:CSC231]][[Category:nasm]] |
Latest revision as of 08:44, 21 September 2014
--D. Thiebaut (talk) 21:16, 15 September 2014 (EDT)
This assignment is due on 9/23/14 @ 11:55 p.m. on Moodle.
Problem 1
Go to Moodle and answer the questions in the Homework 1, Problem 1 section. This section deals with binary, decimal, and hexadecimal number systems. Do not use a calculator or Web-based converter. You can use your notes, and you should work out the answers on paper.
Problem 2
Write an assembly language program that outputs this pattern:
A AA AAA AAAA AAAAA BBBBB BBBB BBB BB B
Your program should have as small a data section as you can make it. Your grade will depend on the size of your data section. The smaller the data section, the closer to 100.
Submit your program to Moodle's Homework 1, Problem 2 section.
- Notes
- 1) The fact that the letters 'A' and 'B' are printed is important. Look at their Ascii code in the Ascii table.
- 2) A string is just a collection of bytes. These bytes are numbers. Nothing special about numbers...