Discuss the basic ( computer ) architecture and operation of the micro-simulator that you have been using in the practical work.

Authors Avatar

HND BIT                 Roy Clarke

Unit 19

HND BIT

Computer Architecture

Assignment 2

Prepared for Roy Clarke

Prepared by R J Clayton


1.0        Table of Contents

––––––––––––––––––––––––––

                                                        

                                        


2.0        

;  CONTROL THE TRAFFIC LIGHTS

        JMP Start

        DB 90                ; address of the interrupt routine

Start:

; RED / RED

        STI                ; Switches on interrupts

        MOV        AL,90        ; Copy 10010000 into the AL register.

        OUT        01        ; Send AL to Port One (The traffic lights).

        MOV        BL,01        ; Moves value ( 1 ) into BL

        CALL        80        ; Call Subroutine 80 (delay routine)

; RED AMBER / RED        ; Turn on all the traffic lights.

        MOV        AL,D0        ; Copy 11010000 into the AL register.

        OUT        01        ; Send AL to Port One (The traffic lights).

        MOV        BL,02        ; Moves value ( 2 ) into BL

        CALL        80        ; Call Subroutine 80 (delay routine)

; GREEN / RED

        MOV        AL,30        ; Copy 00110000 into the AL register.

        OUT        01        ; Send AL to Port One (The traffic lights).

Join now!

        MOV        BL,1E        ; Moves value ( 1E – 30SECS ) into BL

        CALL        80        ; Call Subroutine 80 (delay routine)

; AMBER / RED

        MOV        AL,50        ; Copy 10100000 into the AL register.

        OUT        01        ; Send AL to Port One (The traffic lights).

        MOV        BL,02        ; Moves value ( 2 ) into BL

        CALL        80        ; Call Subroutine 80 (delay routine)

; RED / RED

        MOV        AL,90        ; Copy 01010000 into the AL register.

        OUT        01        ; Send AL to Port One (The traffic lights).

        MOV        BL,01        ; Moves value ( 1 ) into BL

        CALL        80        ; Call Subroutine 80 (delay routine)

; RED / RED AMBER

        MOV        AL,98        ; Copy 10011000 into the AL register.

        OUT        01        ; Send AL to ...

This is a preview of the whole essay