1 / 15

Cos 365 Practical

Cos 365 Practical. Microsoft Assembler. Course Details. Lecturer: Dr Venter Prac Assistant: Kelvin Andrews Assembly Language (Intro) Maths Lab ->Level 2 Science Building 6 Practicals Due dates: week from receiving prac Consultation times. Course Materials. Microsoft Assembler Compiler

hamlet
Download Presentation

Cos 365 Practical

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cos 365 Practical Microsoft Assembler

  2. Course Details • Lecturer: Dr Venter • Prac Assistant: Kelvin Andrews • Assembly Language (Intro) • Maths Lab ->Level 2 Science Building • 6 Practicals • Due dates: week from receiving prac • Consultation times

  3. Course Materials • Microsoft Assembler Compiler • Irvine Library • Prescribed Textbook Kip R. Irvine • Online ebooks • Assembly Editor

  4. Numbers System • Decimal • Binary • Hexadecimal • Byte • Bit

  5. CPU Registers • Intel family of 8088/80286/80386 • Processor registers • Low level assembly

  6. Intel 8088 registers • AX – AH, AL Primary Accumulator • BX – AH,BL Arithmetic, pointers • CX – CH,CL Loops • DX – DH,DL Multiplication, division

  7. Cont.. ‘pointer’ registers • SI Source pointer for string ops • DI Destination pointer for string ops • BP Base pointer • SP Stack pointer

  8. Cont.. ‘segment’ registers • CS Code segment • DS Data segment • SS Stack segment • ES Extra segment

  9. Cont.. ‘special’ registers • IP Program counter • FLAGS Program status word

  10. FLAGS register • Overflow • Direction • Interrupt • Trap • Sign • Zero • Auxiliary • Parity • Carry

  11. Register sizes Why do I care about sizes?

  12. Variables • Sizes not type matter • DB 1byte • DW 2bytes • DD 4bytes • DQ 8bytes • samplearray dw 0,1,2,3,4 • prompt db ‘Enter your name?’ • forty 40 dup(?) • j db 20 • num dw 4000 • longnum dd 80000

  13. Directives • Model • Stack • Data • Code • Denote by a ‘.’ • .model small • .stack 100h

  14. Assembler statement format • AX – destination • I – target • eg startmove. mov bh, 20 ; load 20 into bh reg

  15. Practical Assignment • READING is underrated! • Follow the instructions on the prac-sheet • Code your 1st assembly program • If you get stuck, ask a friend… • Still having problems, try Kelvin or Dr Venter

More Related