blob: 50c760c8341921548fce813c45eb86229d40a26b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 02-Stack
#This test checks whether each stack operation functions as expected.
#MNEMONIC HEX
#TXS (Transfer X to Stack ptr) $9A
#TSX (Transfer Stack ptr to X) $BA
#PHA (PusH Accumulator) $48
#PLA (PuLl Accumulator) $68
#PHP (PusH Processor status) $08
#PLP (PuLl Processor status) $28
p
/Push/Pull Accumulator Test
a9 01
48
a9 10
48
68
68
p
m01
/~~~~TXS/TSX Test
a27f
/Status after LDX 7f
p
9a
/Status after TXS
p
68
68
/Status after 2 PLA
p
ba
/Status after TSX
p
q
|