Scratchpad

This is just my area to play around with stuff in Wordpress… for example trying out new plugins or whatever.

A quick test of a syntax-highlighting code plugin, using some source from one of my programs:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
setupir:
  ld hl, ir_table
  ld a, h
  ld c, ir_ival
  ld b, 0
.lp1:  ld (hl), c
  inc hl
  djnz .lp1
  ld (hl), c
  ld i, a
  ld a, $c3
  ld hl, intfunc
  ld (ir_func), a
  ld (ir_func+1), hl
  im 2
  ; set up the stack to be in fastram
  ld sp, ir_table
  ei

So it seems that the “don’t collapse” bit isn’t working so well, and it also doesn’t seem to be adding line numbers at the very end. Other than that… triffick.

A couple other languages just for fun…

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
++++++++++        initializes cell zero to 10
[
   >+++++++>++++++++++>+++>+< <<<-
]                 this loop sets the next four cells to 70/100/30/10 
>++.              print   'H'
>+.               print   'e'
+++++++.                  'l'
.                         'l'
+++.                      'o'
>++.                      space
< <+++++++++++++++.        'W'
>.                        'o'
+++.                      'r'
------.                   'l'
--------.                 'd'
>+.                       '!'
>.                        newline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
   
   	  	   
		    	
   		  	 	
		    	 
   		 		  
		    		
   		 		  
		    
	  
   		 				
		    	 	
   	 		  
		    		 
   	     
		    			
   			 			
		  
  	   
   		 				
		    	  	
   			  	 
		    	 	 
   		 		  
		    	 		
   		  
	  
		    		  
   	    	
		    		 	
   		 	
		    			 
   	 	 
		    				
    
	
	     
empty-line
    	
empty-line
 			 
empty-line
	  	 
	
     	
	   
empty-line
  	
empty-line
   	 
empty-line
empty-line/EOF