- Timestamp:
- 05/10/05 21:35:00 (4 years ago)
- svk:copy_cache_prev:
- 4498
- Location:
- src/pge
- Files:
-
- 2 modified
-
run_pge.imc (modified) (1 diff)
-
run_pge.pbc (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
src/pge/run_pge.imc
r2889 r2945 1 1 .sub _main 2 .local int spi, spc 3 .local pmc args, match, add_rule 2 4 .include "iglobals.pasm" 3 getinterp $P04 set $P0, $P0[.IGLOBALS_ARGV_LIST]5 $S1 = $P0[1]6 $S2 = $P0[2]7 5 load_bytecode "PGE-Hs.pbc" 8 $P0 = find_global "PGE::Hs", "match" 9 $S0 = $P0($S1, $S2) 6 7 getinterp args 8 set args, args[.IGLOBALS_ARGV_LIST] 9 spi = 3 10 spc = elements args 11 add_rule = find_global "PGE::Hs", "add_rule" 12 13 subrules: 14 unless spi < spc goto do_match 15 $S1 = args[spi] 16 inc spi 17 $S2 = args[spi] 18 inc spi 19 add_rule($S1, $S2) 20 do_match: 21 match = find_global "PGE::Hs", "match" 22 $S1 = args[1] 23 $S2 = args[2] 24 $S0 = match($S1, $S2) 10 25 print $S0 11 26 .end
