]> git.sur5r.net Git - cc65/blobdiff - doc/cc65-intern.sgml
Added commented placeholder for future Mitsubishi 740 CPU in "cpu.mac".
[cc65] / doc / cc65-intern.sgml
index bfbe4d78ee527e86920903826189994e9aa90966..231c04544ddb2b0f31c1142f9d0490587b36a791 100644 (file)
@@ -2,7 +2,7 @@
 
 <article>
 <title>cc65 internals
-<author><url url="mailto:brad@rainwarrior.ca" name="Brad Smith">
+<author><url url="mailto:bbbradsmith@users.noreply.github.com" name="Brad Smith">
 <date>2016-02-27
 
 <abstract>
@@ -27,7 +27,7 @@ There are two calling conventions used in cc65:
   <item><tt/cdecl/ - passes all parameters on the C-stack.
   <p>
   <item><tt/fastcall/ - passes the rightmost parameter in
-  registers <tt>A/X/sreg</tt> an all others on the C-stack.
+  registers <tt>A/X/sreg</tt> and all others on the C-stack.
   <p>
 </itemize>
 
@@ -52,7 +52,7 @@ If the function is declared as fastcall, the rightmost argument will be loaded i
 the <tt>A/X/sreg</tt> registers:
 
 <itemize>
-  <item><tt/A/ - 8-bit parameter, or low byte of larger tyes<p>
+  <item><tt/A/ - 8-bit parameter, or low byte of larger types<p>
   <item><tt/X/ - 16-bit high byte, or second byte of 32-bits<p>
   <item><tt/sreg/ - Zeropage pseudo-register including high 2 bytes of 32-bit parameter<p>
 </itemize>
@@ -68,7 +68,7 @@ the <tt/Y/ register will contain the number of bytes pushed to the stack for thi
 Example:
 <tscreen><verb>
 // C prototype
-void foo(unsigned bar, unsigned char baz);
+void cdecl foo(unsigned bar, unsigned char baz);
 
 ; C-stack layout within the function:
 ;