Difference between revisions of "Routines"

From WikiTI
Jump to: navigation, search
(sed hint)
(Different instructions on formatting code. not only is this easier to do, but we can instruct them without giving sed commands. :-))
Line 3: Line 3:
 
----
 
----
  
* [[Routines:Graphic|Graphic routines]]
+
* [[Routines:Graphic|Graphic Routines]]
* [[Routines:Sound|Sound routines]]
+
* [[Routines:Sound|Sound Routines]]
* [[Routines:Input|Input routines]]
+
* [[Routines:Input|Input Routines]]
* [[Routines:Other|Other routines]]
+
* [[Routines:Other|Other Routines]]
  
 
----
 
----
  
When you paste code, remember to insert a space character at the beginning of each line in order to let it be displayed in a fixed-width font, and without needing to insert special characters in order to have line breaks.
+
When you paste code, there is a simple step you can do to format the code properly. Start the first line of code with <nowiki>, and put a space infront of the <. On the last line of your code, end it with </nowiki>. This allows for code to be formatted like this (click edit on this page to see how it's done):
  
If you're using an Unix-like system, open a terminal and type :
+
<nowiki>cp  10
sed s/^/" "/  routine.z80  > wikiroutine.z80
+
ccf
to insert a space at the beginning of your routine's lines.
+
adc a, 30h
 +
daa</nowiki>

Revision as of 09:23, 27 March 2005

This is the index of the different routines pages of this wiki.



When you paste code, there is a simple step you can do to format the code properly. Start the first line of code with <nowiki>, and put a space infront of the <. On the last line of your code, end it with </nowiki>. This allows for code to be formatted like this (click edit on this page to see how it's done):

cp  10
ccf
adc a, 30h
daa