mirror of
https://github.com/wfjm/w11.git
synced 2026-02-23 16:02:18 +00:00
- tools/tcode/*.mac: use call+return+push+pop - tools/asm-11 - lib/push_pop.mac: added, contains push/pop macros - lib/tcode_std_start.mac: include push_pop.mac; ensure PRI=0 at start - tests/test_0170_misc.mac: added, verifies call,return response
20 lines
555 B
Plaintext
20 lines
555 B
Plaintext
; $Id: test_0170_misc.mac 1262 2022-07-25 09:44:55Z mueller $
|
|
; SPDX-License-Identifier: GPL-3.0-or-later
|
|
; Copyright 2022- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
;
|
|
; test special pst entries call and return
|
|
;
|
|
.asect
|
|
.blkw 400
|
|
|
|
; call/return
|
|
|
|
call sub1 ;!! 001000: 004767 000006
|
|
call @psub1 ;!! 001004: 004777 000004
|
|
call (r1) ;!! 001010: 004711
|
|
|
|
sub1: return ;!! 001012: 000207
|
|
psub1: .word sub1 ;!! 001014: 001012
|
|
|
|
.end
|