Skip to content

Commit e476444

Browse files
committed
Added test for sp_network being set when calling sp_find_network
1 parent 1d098bb commit e476444

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/bdd-testing/features/apple2/fn_network/sp_find_network.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Feature: library test - apple2 sp_find_network
77
And I add common apple2-sp files
88
And I add file for compiling "features/apple2/fn_network/invokers/test_sp_find_network.s"
99
And I create and load apple-single application using crt-file "features/apple2/fn_network/stubs/crt0.s"
10+
And I write memory at _sp_network with $FF
1011
When I execute the procedure at _init for no more than 750 instructions
1112

1213
# offset 5 contains the device name
@@ -22,3 +23,6 @@ Feature: library test - apple2 sp_find_network
2223
# return from _sp_find_network is 2 for Device number
2324
And I expect register A equal 2
2425
And I expect register X equal 0
26+
27+
# Check _sp_network is altered to correct value
28+
And I expect to see _sp_network equal 2

0 commit comments

Comments
 (0)