mirror of
https://github.com/wfjm/w11.git
synced 2026-04-30 21:49:43 +00:00
- tools - bin/asm-11: BUGFIX: fix directly nested .if behavior - bin/ip_delete_tap: added - asm-11/tests: add zbug_0007.mac, test_0460_if_nest.mac - oskit/test/os/211bsd/211bsd_eth.tcl: use 'ip' command
37 lines
744 B
Plaintext
37 lines
744 B
Plaintext
; $Id: test_0450_if_macro.mac 1373 2023-02-16 11:21:26Z mueller $
|
|
; SPDX-License-Identifier: GPL-3.0-or-later
|
|
; Copyright 2023- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
;
|
|
; test .if with macros
|
|
;
|
|
.asect
|
|
. = 1000
|
|
|
|
; list macro and conditional expansion
|
|
.list me,cnd
|
|
;
|
|
.macro movclr,dst,src
|
|
.if b,dst
|
|
.mexit
|
|
.endc
|
|
.if b,src
|
|
clr dst
|
|
.iff
|
|
mov src,dst
|
|
.endc
|
|
.endm movclr
|
|
;
|
|
movclr
|
|
1000$: ;;!! 001000:
|
|
;
|
|
movclr a
|
|
1100$: ;;!! 001004:
|
|
;
|
|
movclr b,#1
|
|
1200$: ;;!! 001012:
|
|
;
|
|
a: .word 0
|
|
b: .word 0
|
|
;
|
|
.end
|