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
------------------------------------------------------------------------------- | |
Object | |
Addr code Symbol Mnemon Operand Comment | |
------------------------------------------------------------------------------- | |
0000 C1000D LDA 0x000D,d ;Load Num1 to A | |
0003 C9000F LDX 0x000F,d ;Load Num2 to X (not needed to do next op!) | |
0006 71000F ADDA 0x000F,d ;Add Num2 to contents of A (leave in A) | |
0009 E10111 STA 0x0111,d ;store result in Result space | |
000C 00 STOP |
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
BR main | |
;Do not modify code before this point! | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;BEGIN INPUTTO (get user input by reference) | |
inputTo: nop0 ;pretty input getter | |
;any equates you need for local variables | |
;CODE formal parameter #2h |
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
;Trying to use a global variable to allow function arguments | |
BR main | |
usrInput: .BLOCK 2 ;global variable #2d | |
showChar: NOP0 | |
charo '\n',i | |
deco usrInput,d | |
RET0 |
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
// unionSet respects counted set counts | |
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSCountedSet* cSet = [NSCountedSet set]; |
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
<?php | |
// using ldap bind | |
$ldaprdn = 'name'; // ldap rdn or dn | |
$ldappass = 'pass'; // associated password | |
// connect to ldap server | |
$ldapconn = ldap_connect("ldap.server.edu") | |
or die("Could not connect to LDAP server."); | |
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
<?php | |
ini_set('display_errors', 1); | |
$db_handle = pg_connect("dbname=CS325_astudent user=astudent password=apassword"); | |
$query = "SELECT * FROM schemaname.tablename"; | |
$result = pg_exec($db_handle, $query); | |
echo "Number of rows: " . pg_numrows($result); | |
pg_freeresult($result); | |
pg_close($db_handle); | |
?> |
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
//This documentation should be put with the appropriate class/method/function declarations. | |
//Remember to add file documentation blocks to all your files! | |
/** | |
Entry point for the program. Tests that list operations are working. | |
*/ | |
/** | |
Represents a node in a singly linked list | |
*/ |
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
/********************************/ | |
/* WARNING! These are snippets */ | |
/* and NOT the entire code! */ | |
/* You'll need to implement the */ | |
/* designated initializer and */ | |
/* most of the arithmetic. */ | |
/********************************/ | |
-(id) initWithReal:(int)reNum | |
over:(int)reDen |
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
# Doxyfile 1.7.4 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project | |
# | |
# All text after a hash (#) is considered a comment and will be ignored | |
# The format is: | |
# TAG = value [value, ...] | |
# For lists items can also be appended using: | |
# TAG += value [value, ...] |
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
// TODO: Implement method | |
#warning Method still a stub | |
-(double) congratulate:(NSString*)whom manyTimes:(int)n | |
{ | |
NSLog(@"\n\tStatus=<%@> Class=<%@> Selector=<%@>", @"Stub", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); | |
return NAN; | |
} | |
// TODO: Implement method | |
#warning Method still a stub |