![](../../../images/space.gif) |
![](../../../images/layout/shadow.gif) |
Author: PRCIVIC Date: 05-28-03 21:46
Ok I have commented the AC routine posted for the benefits of those with no assembly knowlege. And yes anyone may comment if i missed anything.
All I explain is what the particular code means that should be enough for the lazy that don't like to read.
4306- DA 11 17 : JBR off 11.2, 4320 ; A/C switch input 11.2= Offset 11 bit 2
4309- C4 26 1C : SB off 26.4 ;Set bit 4 on offset 26 to 1
430C- F4 E2 : LB A, off E2 ;Load E2 to lower byte of the accumulator
430E- CE 1B : JNE 432B ;Jump to 432B if Not Equal
4310- C4 E3 98 32 : MOVB off E3, #32 ;Move #32 to Offset E3
4314- C4 1B 18 : SB off 1B.0 ;Set bit 0 of offset 1B to 1
4317- 95 : RC ;Resets the carry by making C = 0
4318- CB 15 : SJ 432F ;Jump from next instruct. to (432F)
431A- C4 B8 15 : CLRB off B8 ;Clears the Object all bits 0
431D- C4 E3 15 : CLRB off E3 ;Clears the object all bits 0
4320- C4 26 0C : RB off 26.4 ;Reset bit 4 of offset 26
4323- F4 E3 : LB A, off E3 ;Load value of offset E3 to the accumulator
4325- CE ED : JNE 4314 ;Jump to 4314 if not equal
4327- C4 E2 98 32 : MOVB off E2, #32 ;Move direct value #32 to offset (E2)
432B- C4 1B 08 : RB off 1B.0 ;Reset bit 0 of offset 1B
432E- 85 : SC ;Set the carry by making C = 1
432F- C5 20 38 : MB 20.0, C ;A/C Clutch?! Output
|
Copyright © 2002-present by the contributing authors. All material on this collaboration platform is the property of the contributing authors, and is covered by the Non-Commercial Share-Alike License unless explicitly stated otherwise. |
|