Anonymous user
Execute SNUSP/D: Difference between revisions
m
Grammar
m (added tags) |
m (Grammar) |
||
Line 1:
{{implementation|SNUSP}}{{collection|RCSNUSP}}[[Category:D]]
This implementation includes all '''Bloated SNUSP''' commands, plus a minor custom feature : ''debugInput''. ''debugInput'' is a pattern to setup a
The following are some notes.
*'''Memory'''
**The memory space is represented by a class ''Mem''. Since Bloated SNUSP allows memory pointer to move up and down, the memory space is a 2-dimensional space;
**Mem is internally represented as an associative array, with ''cfloat'' as key and ''int'' as value. Externally, the ''keys''
*'''Code Pointer'''
**This again is in a 2-dimensional space. The
**If CP
*'''Core/Thread/Execution Unit''''
**This class is
**Since this implementation
*'''CPU'''
**CPU acts as a resource manager and thread execution scheduler(trivially).
Line 152:
private Core[] newcores ;
static int rnd(int b) { // return a random number between and
int a = 0 ;
if(a > b) { a = b ; b = 0 ; }
|