Decisions - Microprocessor Based Systems - Lecture Slides, Slides of Microprocessor and Interfacing

The important point in the lecture slides of the Microprocessor Based Systems are:Decisions, Assembler Code, Flowchart and Assembler, Continuation, Simulation, Code, Running, Connect Window, Left Side, Different

Typology: Slides

2012/2013

Uploaded on 05/07/2013

anjushree
anjushree 🇮🇳

4.4

(54)

147 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Decisions in assembler code
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Decisions - Microprocessor Based Systems - Lecture Slides and more Slides Microprocessor and Interfacing in PDF only on Docsity!

Decisions in assembler code

3 < A < 8

  • Flowchart and assembler
    • LDAA VALA
    • CMPA #
    • BLE OUT
    • CMPA #
    • BGE OUT
    • Do action OUT continuation

2<=A<=

  • Flowchart and assembler
    • LDAA vala
    • CMPA #
    • BLT out
    • CMPA #
    • BGT out
    • action when true
    • out continuation

Simulation Assignment 1

  • Enter the following code into THRSIM
    • ORG $
    • INNR RMB 1
    • OTTR RMB 1
    • ORG $E
    • LDAB #$FF
    • STAB $1007 configure port C for output
    • OL LDAA delayval try 1, try 10, etc
    • STAA ottr
    • TOP DECR INNR
    • BNE TOP
    • DEC OTTR
    • BNE TOP
    • EORB #$FF
    • STAB $
    • BRA OL
    • LDA $FF
    • END BRA END

Being able to reset simulator

  • If you want to be able to reset the simulator to

rerun you code enter the following.

– ORG $FFFE

– FCB $E

– FCB $

  • What does this do? It resets the PC when a

reset occurs to value $E