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
int Hash(char *str) | |
{ | |
char *p = str; | |
__asm { | |
mov ecx, dword ptr [esp+4] | |
test ecx, 3 | |
je go | |
bloop: | |
mov al, byte ptr[ecx] |
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
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET /A count=0 | |
call:Libraries | |
call:Samples | |
call:Tests | |
goto:end | |
:Libraries | |
echo Recompiling Neon Libraries... |
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
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET /A count=0 | |
call:Libraries | |
call:Samples | |
call:Tests | |
goto:end | |
:Libraries | |
echo Recompiling Neon Libraries... |
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
#| | |
| File: daisy.neon | |
| | |
| This file plays "Daisy Bell" (Bicycle Built For Two) to demonstrate the use of the | |
| core sid library. | |
|# | |
#IMPORT bitwise | |
IMPORT sid | |
VAR Voice: Number := 1 # Play the tune out of voice 3. |
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
@ECHO OFF | |
SETLOCAL | |
SET Version=1.3 | |
SET TCX="%ProgramData%\3CXPhone for Windows\PhoneApp\CallTriggerCmd.exe" | |
SET Away=242 | |
SET Custom1=244 | |
SET Custom2=241 | |
SET Available=245 | |
SET Exceptions=-1 | |
SET CustomHours=-2 |
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
-- Rosettacode Coding Exercise: Levenshtein distance | |
-- Description: In information theory and computer science, the Levenshtein distance is a metric | |
-- for measuring the amount of difference between two sequences (i.e. an edit | |
-- distance). The Levenshtein distance between two strings is defined as the minimum | |
-- number of edits needed to transform one string into the other, with the allowable | |
-- edit operations being insertion, deletion, or substitution of a single character. | |
-- From: http://rosettacode.org/wiki/Levenshtein_distance | |
-- Language: http://neon-lang.org | |
-- Author: Larry Frieson | |
-- Date: 11/11/2015 |
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
############################################################################################################################# | |
# File : backplane_sample.neon | |
# Author : Larry Frieson | |
# Desc : This file contains sample code for the MVI69E-LDM module in the Neon programming language. | |
# Date : 11/11/2019 | |
# | |
# Copyright (C) 2019 ProSoft Technology, Inc. All rights reserved. | |
# | |
# Revision History: | |
# 11/11/2019 17:43:18 LEF - created. |
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
IMPORT io | |
IMPORT sys | |
IMPORT mvi69 | |
IMPORT time | |
VAR bpHandle: mvi69.MVI69Handle | |
VAR ver: mvi69.MVI69VersionInfo | |
VAR scanCount: Number := 0 | |
VAR bDone: Boolean := FALSE | |
VAR ret: Number := 0xFFFF |
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
///////////////////////////////////////////////////////////////////////////// | |
// backplane_sample.c | |
// | |
// This file contains sample code for the MVI69E-LDM module. | |
// | |
// (c) 2013, Prosoft Technology , All Rights Reserved | |
// | |
// MODIFIED : | |
// 4/18/2013 -- PJB | |
// |
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% File : mvi69.neon | |
% Author : Larry Frieson | |
% Desc : Contains definitions, structures, and function templates for all functions defined in the MVI69E API. This file | |
% is distributed as part of the Neon Extension API for the MVI69E-LDM module. | |
% Date : 10/14/2019 | |
% | |
% Copyright (C) 2019 ProSoft Technology, Inc. All rights reserved. | |
% | |
% Revision History: |