From e3f63219a16ae00415205744cb2dbd1cd6598d76 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 7 Jun 2004 21:40:51 +0000 Subject: [PATCH] Fixed a typo and changed example to use new asm syntax git-svn-id: svn://svn.cc65.org/cc65/trunk@3112 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 97ee34a08..f40cf4c33 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -172,7 +172,7 @@ Here is a description of all the command line options: --forget-inc-paths - Forget the builtin include paths. This is most useful when building + Forget the builtin include paths. This is most useful when building customized C or runtime libraries, in which case the standard header files should be ignored. @@ -497,7 +497,11 @@ This cc65 version has some extensions to the ISO C standard. sequences of assembler code. For example, the macro - #define hi(x) (__AX__=(x),asm("\ttxa\n\tldx\t#$00",__AX__) + #define hi(x) \ + (__AX__ = (x), \ + asm ("txa"), \ + asm ("ldx #$00"), \ + __AX__) will give the high byte of any unsigned value. -- 2.39.5