Archive for February, 2007

ASCII Chart

Thursday, February 8th, 2007

You may find this useful for problem set 4. You can read off the hex value for any ASCII character by taking the first nibble from the first column and the second nibble from the top row. So, for this assignment, you’ll need to convert an ASCII digit, say ‘4′ with code 0×34 to the numerical value 4. Simply subtract the code for ‘0′ from it. So subtracting 0×30 from an ASCII digit will give you the numerical value of the digit. Likewise, if you want to go from a small number, say 5, to its ASCII representation, simply add 0×30 to it. 5 + 0×30 = 0×35.

  0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
2 SP ! # $ % & ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4 @ A B C D E F G H I J K L M N O
5 P Q R S T U V W X Y Z [ \ ] ^ _
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~ DEL

Problem Set 4, More Programming

Thursday, February 8th, 2007

In problem set 4 you’ll wrestle with writing your own programs and think about the various representations for numbers. Feel free to work together in small teams on this assignment but the work you turn in should be your own. Include in the comments at the top of your program the names of the other students on your team. This is due before class on Thursday 1 March.

You should email your answers to our TA. Attach the files for the 3 problems to your email along with examples from the simulator running it.

Read in Chapter 2

Thursday, February 8th, 2007

Study sections 2.10 - 2.15

Assemblers and Compilers

Thursday, February 8th, 2007

Today we’ll look at the translation process from high-level languages to running programs. Lecture 8 slides.

Test 1 next Thursday

Wednesday, February 7th, 2007

We’ll have our first test next Thursday on 15 February. It will cover the material in lectures 1 through 8. We’ll review for the test on Tuesday 13 February.

The test will be open book and notes.

Stacks and Procedures

Tuesday, February 6th, 2007

Today we’ll look at how procedure calls are implemented in high-level languages. Lecture 7 slides.

Problem Set 3, Begin Programming

Monday, February 5th, 2007

Problem Set 3 is now available and due Friday 16 February.

Snow!

Thursday, February 1st, 2007

No class today.