This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
namespace StackProper | |
{ | |
class PStack<T> | |
{ | |
public class Node | |
{ | |
public Node Next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; -------------------------------------------- | |
; Title: MemoryTest | |
; Author: Measter | |
; date: 02/11/2012 | |
; Version: | |
; ------------------------------------------- | |
set pc, start | |
.include memory.asm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static IEnumerable<int> FindFirstNumPrimes( int limit ) | |
{ | |
List<int> primes = new List<int>( new[] { 2 } ); | |
bool isPrime; | |
int i = 1; | |
while( primes.Count < limit ) | |
{ | |
i += 2; | |
isPrime = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Drawing; | |
namespace ColorTest | |
{ | |
class Program | |
{ | |
static void Main( string[] args ) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Multiplies two 32-bit numbers. Big Endian. | |
; Input | |
; SP+3 : Left half of first value. | |
; SP+2 : Right half of first value. | |
; SP+1 : Left half of second value. | |
; SP+0 : Right half of second value. | |
; Output | |
; SP+1 : Right half of result. | |
; SP+0 : Left half of result. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace PointerTest | |
{ | |
public struct Pointer | |
{ | |
public static byte[] Memory = new byte[UInt16.MaxValue]; | |
private readonly UInt16 m_address; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ----------------------- | |
; Title: Core RL | |
; Author: Measter | |
; Date: 2013/10/25 | |
; | |
; Based on Core: A Minimal Roguelike. | |
; http://http://roguelikeeducation.org/1.html | |
; ----------------------- | |
; Revisions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
namespace ConsoleTestApp | |
{ | |
class Program | |
{ | |
private static readonly Font TxtFont = new Font( FontFamily.GenericMonospace, 10 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.Linq; | |
namespace ConsoleTestApp | |
{ | |
public class Pyramid | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*----------------------------------------------------------- | |
* Title : Unsigned Longword Multiplication. | |
* Written by : Stuart Haidon | |
* Date : 2014-06-22 | |
*----------------------------------------------------------- | |
* Longword Unsigned Multiplication. | |
* Pre: | |
* +4 : Multiplicand. | |
* +0 : Multiplier. |
OlderNewer