10 11 12 name "Traffic light control system" 14 15 16 18 mov ax, all_red 19 20 out 4, ax mov si, offset situation next:
Posted: Sun Jul 03, 2022 9:59 am
49 50 51 52 53 54 add si, 2 55 56 cmp si, sit_end 57 58 jb next 59 60 mov si, offset situation 61 62 jmp next 63 64 65 66 67 68 69 70 71 ; 72 73 situation 74 75 s1 76 77 s2 78 79 s3 80 81 s4 82 83 sit_end = $ 84 85 86 87 88 89 all red dw dw dw dw dw equ FEDC_BA98_7654_3210 0000_0011_0000_1100b 0000 0110_1001_1010b 0000_1000_0110_000lb 0000 1000 0110_0001b 0000_0100_1101_0011b 0000_0010_0100_1001b
90 91 92 93 all red equ 0000_0010_0100_1001b