From: ian Date: Thu, 6 Jan 2005 19:31:38 +0000 (+0000) Subject: demonstrate SLOW_VERSION X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=3d416cd4327c4309e3ac1af0f443eee53e38ad89;p=trains.git demonstrate SLOW_VERSION --- diff --git a/cebpic/nmra-stream.asm b/cebpic/nmra-stream.asm index 6d69a29..a689473 100644 --- a/cebpic/nmra-stream.asm +++ b/cebpic/nmra-stream.asm @@ -16,7 +16,19 @@ TOTRACK equ 0x2 ; byte 2: to-track buffer location (in BSR5) TOTRACKBIT equ 0x3 ; byte 3: bit location of pointer within byte - + ifdef SLOW_VERSION + messg "hello this is the slow version" + endif + + ifndef SLOW_VERSION + messg "hello this is the fast version" + endif + + ifdef SLOW_VERSION + messg "with an if" + else + messg "and an else" + endif org 0 goto initialise diff --git a/detpic/nmra-stream.asm b/detpic/nmra-stream.asm index 6d69a29..a689473 100644 --- a/detpic/nmra-stream.asm +++ b/detpic/nmra-stream.asm @@ -16,7 +16,19 @@ TOTRACK equ 0x2 ; byte 2: to-track buffer location (in BSR5) TOTRACKBIT equ 0x3 ; byte 3: bit location of pointer within byte - + ifdef SLOW_VERSION + messg "hello this is the slow version" + endif + + ifndef SLOW_VERSION + messg "hello this is the fast version" + endif + + ifdef SLOW_VERSION + messg "with an if" + else + messg "and an else" + endif org 0 goto initialise