User Tools

Site Tools


acsim_toolbox_c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
acsim_toolbox_c [2006/08/06 14:13] – added addr @ hexview audiocommanderacsim_toolbox_c [2007/10/06 12:18] stryd_one
Line 1: Line 1:
-This page is part of the [[mios_c_simulator_-_debugger]]+ This page is part of the [[mios_c_simulator_-_debugger]]
  
 [[acsim_console_h|ACSim_console.h]]\\ [[acsim_console_h|ACSim_console.h]]\\
 [[acsim_console_c|ACSim_console.c]]\\ [[acsim_console_c|ACSim_console.c]]\\
- 
-**[[acsim_toolbox_c|ACSim_toolbox.c]]**\\ 
  
 [[acsim_mios_h|ACSim_mios.h]]\\ [[acsim_mios_h|ACSim_mios.h]]\\
 [[acsim_mios_c|ACSim_mios.c]]\\ [[acsim_mios_c|ACSim_mios.c]]\\
  
 +[[acsim_toolbox_h|ACSim_toolbox.h]]\\
 +**[[acsim_toolbox_c|ACSim_toolbox.c]]**\\
 +[[acmididefines|ACMidiDefines.h]]\\
 +\\
 +This code is for viewing only and may not be up to date. You can download the files in a {{acsim.zip|.zip file here}}. If you make any updates, please send them to stryd_one and he will update the zip for you.
 +\\
 \\ \\
 <code c> <code c>
Line 35: Line 39:
  
  
-#import <Stdio.h> 
  
 +#import "ACSim_toolbox.h"
  
-#ifndef _ACSIM_TOOLBOX_C +#import "ACSim_console.h"
-#define _ACSIM_TOOLBOX_C+
  
  
  
  
-#pragma mark random numbers 
 // generate some random numbers // generate some random numbers
 unsigned char ACRandomBool(void) { return (random() % 2); } unsigned char ACRandomBool(void) { return (random() % 2); }
Line 55: Line 57:
  
  
-#pragma mark HEXVIEW 
 // hexview output // hexview output
-#define HEXVIEW_COLUMNS 68 +// maybe configure defines in header!
-#define HEXVIEW_CHARS ((HEXVIEW_COLUMNS-1)/4)+
  
 void hexview(unsigned char *buf, int size) { void hexview(unsigned char *buf, int size) {
Line 89: Line 89:
  r++;  r++;
  }  }
- printf("\n"); 
 } }
  
  
-#endif /* _ACSIM_TOOLBOX_C */ 
 </code> </code>
acsim_toolbox_c.txt · Last modified: 2007/11/17 16:48 by smashtv