Jonathan D. Margush Last modified by: Jonathan D. Margush Created Date: 2/8/2002 11:14:26 PM Document presentation format: On-screen Show Other titles:
Computer Programming I. Dr. Tim Margush. Mathematics, Science and Technology Department ... Computer Programming I. Slide 4. Eliminating Unnecessary Work ...
Store String. STOSB, STOSW. Copy AL or AX into an array of ... stosb ;store at next location. loop lp. 9/5/09. Dr. Tim Margush - Assembly Language Programming ...
double * dPtr = new double; BankAccount ba = new BankAccount ... delete dPtr; delete ba; C Basics. 9/19/09. Nova Southeastern University. Dr. Tim Margush ...
Any line can have a comment. 9/7/09. Dr. Tim Margush - Assembly ... Comments. Single ... Block comments. Begin with /*, end with */, and may span several ...
RET ;to return to caller. proc_name ENDP. type is NEAR or ... Procedures may have one or more RET's. 9/28/09. Dr. Tim Margush - Assembly Language Programming ...
If the condition is not negated, the else part can be coded first ... Only the last condition is negated. 9/26/09. Dr. Tim Margush - Assembly Language Programming ...
Aroma 3: Class Hierarchy, Inheritance and Polymorphism. Special Topics: Java. Dr. Tim Margush ... The package statement indicates that this class will be part ...
I/O Registers set to default states. PC = 0, causing ... Bit 3 EERIE: Ready Interrupt Enable. 10/17/09. Dr. Tim Margush - Assembly Language Programming ...
Aroma 1: Arguments to Appl* Special Topics: Java. Dr. Tim Margush ... This invokes the method main in the named class. main has one argument - an array of Strings ...
The STK-500 provides 8 LEDs that can be easily connected to one of the I/O ports ... out PORTB, R16 ;3 LEDs will be on. 9/30/09. Dr. Tim Margush - Assembly ...
One-one correspondence between statements and native machine language ... contains a record of the translation process, line numbers, addresses, generated ...
Processor Status and FLAGS for the 8086. Assembly Language ... Status flags (CF, PF, AF, ZF, SF, OF) Set to represent the result of certain operations ...
events are sent to the program that owns the window in which ... activating, deactivating, closing, iconifying, etc. related to Window objects (and subclasses) ...
... between statements and native machine language ... Each mnemonic used represents a single machine instruction. The assembler performs the translation ...
Department of Mathematics and Computer Science. The University of Akron. 9/1/09 ... When rolled, each face is equally likely to appear on top (a fair Die) ...
... all window systems. Functions are implemented by calling on native window system ... Window - free floating object that can be positioned on the screen ...
Arguments are information passed to a procedure when it is called ... the procedure. Arguments may need to be removed from the stack if the procedure does not ...
... one or more of Base register, Index register, and Displacement ... This is the same as Register Indirect, except a displacement is added into the mixture ...
define memory contents. specify amount of storage to reserve for run ... appropriate DEFINE directive (byte, ... of storage locations to be defined or reserved ...
lea dx,input_message. mov ah,9 ;display input prompt. int 21h ... lea dx,output_message. mov ah,9 ;move to new line and get. int 21h ;ready to display result ...
... Language Programming. 2. Unconditional Jump. JMP [operator] destination ... Combine a conditional and unconditional jump to overcome this range limitation ...
Know how to design custom Exception classes and throw exceptions of various types ... throw new MyException('Niagra Falls...'); Catching I/O Exceptions ...
... a basic graphics ... specify coordinates and to draw text, shapes, and images ... Drawing Shapes. public class ShapeSample extends JPanel{ public void ...
Try, Catch, and Finally. Each try block is followed by one or more catch blocks, and an optional finally block ... is executed inside the try or catch blocks! ...
Concatenate the remainders to form the binary representation ... sequence of ASCII bytes representing the digits of the number expressed in some radix ...
... are referred to as 8-bit registers, but remember they are ... 20-bit addresses must be formed from 16-bits of information. Interrupt Vectors. BIOS and DOS Data ...
Dangling Else. Nesting an if inside an if-else causes the dangling else problem: ... connect the else with the outer if thus avoiding the dangling-else problem ...
The following ststic methods return a new InetAddress object. InetAddress. ... HTTP, FTP, GOPHER, FILE, NEWS. Host. dotted quad or domain name format. Port ...
andi Rd, k ori Rd, k. Rd = Rd AND ... andi R16, $0F ;test low nybble. breq allZero ;branch if low nybble all ... Use ANDI to be sure other bits in the byte are ...
... the thread for execution (it is in the runnable state) the thread's run() method ... A Thread has a stop() method that can also be used to terminate it ...
The new prototype uses pass by reference to avoid copying the vector ... Notice how the decrementing and testing of loc are combined into one operation ...
A condition or event that interrupts the normal flow of control in a program. Interrupt hardware inserts a function call between instructions to service the ...
The stack is an area of SRAM that grows downward from a fixed reference point ... the stack into PC effectively resuming execution at the statement following the ...
This will clear (set to 0) bit 7 of AH leaving all other bits unchanged. Mask out unwanted bits ... Bit Shifting. Slide bits in byte or word to left or right ...
Importing Packages. The import statement informs the compiler that part or all ... You can use packaged classes without an import if you fully qualify each name ...
CL is attribute. Returns file handle in AX or error code 3, 4, or 5. Open Existing. AH is 3Dh ... 11 attribute. 22-25 timestamp. 26-27 starting cluster number ...
Applets are embedded in HTML documents. Browser loads page ... JComponents provide a graphics environment that can be embedded in a JFrame or JApplet ...
Group radio related info in a Radio class. Group acceleration related info ... The Car class depends upon the GasPedal and Radio classes, however these classes ...
Know how to use the basic looping structures in Java (while, ... netWorth = wage; //payday. System.out.println( 'Your net worth after ' days ' days is ' ...
Who Is Mandelbrot? Benoit Mandelbrot Mandelbrot was born in Poland in 1924. He studied mathematics in France under Gaston Julia and others. Mandelbrot researched ...
See the relationship between programming languages and architecture ... Borland Jbuilder. Symantec VisualCafe. IBM WebSphere Studio. Metrowerks CodeWarrior ...
A function is a program unit representing the abstraction of some task ... x = ceil(y); showMoney(amount * .90); 10/3/09. Nova Southeastern University. Dr. Tim Margush ...