------=_Part_14191_15608383.1126697576749 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear colleagues, teachers and friends, I have been hard at work during my school break today, patching together=20 some of the information that I have been given by you guys. This is what I= =20 have done so far:=20 * Implemented the BANKSELECT pre-processor. * Implemented dynamic memory allocation. * Got rid of "GOTO ISR" and placed the ISR itself at the definition "ORG=20 0x04". * Did a little cleaning and some re-commenting. * Fixed the value being written to a read-only bit on the OSCCON0-Register= =20 (0x03 becomes 0x01) * Made sure that "BSF INTCON, GIE" is the last thing done in the=20 initialization sub and that INTCON / PIE1 / PIR1 are cleared before setting= =20 the GIE. --> See the attached ASM. Ah, since the bank-incident was cleared with IOCA, the interrupts seem to= =20 finally be working on PORTA!!! I still have some things to like crank the OSC up to it's full power and=20 devise a devious and perhaps efficient way of going about my delays by=20 making use of a Timer-overflow. Might do that either this afternoon or=20 evening. If there is anything else, please let me know!!! Don't be too shy to=20 scrutinize it all! :-) Thanks, Sean. ------=_Part_14191_15608383.1126697576749 Content-Type: application/octet-stream; name="test_piclist.asm" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test_piclist.asm" OyBNYXkgdGhlIHNvdXJjZSBiZSB3aXRoIHlvdSENCjsrLSstKy0rLSstKy0rLSstKy0rLSstKy0r LSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rLSstKy0rDQo7IFByZXBlcmF0aW9uYWwgUGFy dDoNCg0KCUxJU1QJUD0xNkY2ODQJCQkJCQkJCQkJCTsgVGhlIG1pZ2h0eSBQSUMgMTZGNjg0DQoJ I0lOQ0xVREUgPFAxNkY2ODQuSU5DPg0KDQoJRVJST1JMRVZFTCAtMzAyCQkJCQkJCQkJCQkJOyBT dXByZXNzIHRoZSAobWFudWFsKSBiYW5raW5nIGVycm9yIQ0KDQoJX19DT05GSUcgICBfQ1BfT0ZG ICYgX0NQRF9PRkYgJiBfQk9EX09GRiAmIF9NQ0xSRV9PRkYgJiBfV0RUX09GRiAmIF9QV1JURV9P TiAmIF9JTlRSQ19PU0NfTk9DTEtPVVQNCg0KDQo7IFRoaXMgKGJlbG93KSBpcyB3aGVyZSB3ZSBk ZWZpbmUgbWVtb3J5IHNwYWNlIFsgQkFOSyAwIDogMHgyMCAtIDB4N0YgJiYgQkFOSyAxIDogMHhB MCAtIDB4QkYgXS4NCg0KOyBUaGUgIlRlbXBvcmFyeSIgbWVtb3J5IGxvY2F0aW9uczoNClRFTVBf VwkJCVJFUwkJMQkJCQkJCQkJOyBQbGFjZSB0byBkdW1wIFctUmVnaXN0ZXIgaW4gY2FzZSBvZiBp bnRlcnJ1cHQuDQpURU1QX1NUQVRVUwkJUkVTIAkxCQkJCQkJCQk7IFBsYWNlIHRvIGR1bXAgU1RB VFVTLVJlZ2lzdGVyIGRhdGEgaW4gY2FzZSBvZiBpbnRlcnJ1cHQuDQoNCjsgVGhpcyBpcyB3aGVy ZSB0aGUgZGVmaW5pdGlvbnMgU1RPUC4NCg0KCU9SRyAweDAwCQ0KCUdPVE8gU1RBUlQJCQkJCQkJ CQkJOyBTdGFuZGFyZCBPcGVyYXRpb24NCg0KOyAqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqIDsNCjsgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7DQo7ICAgICAgICAg ICAgICAgICAgSU5URVJSVVBUIFNFUlZJQ0UgUk9VVElORSAgICAgICAgICAgICAgICAgICAgOw0K OyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIDsNCjsgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKiA7DQoNCglPUkcJMHgwNAkJCQkJCQkJCQk7IFRoZSBJbnRlcnJ1cHQg U2VydmljZSBSb3V0aW5lIChDYWxsZWQgaW4gY2FzZS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0YJCVBPUlRBLCAxCQkJCQkJCQkJCQk7IFR1cm4gTEVE IG9mZi4NCg0KCTsjIyMgRU5EIElTUiBDT0RFICMjIw0KDQoJOyBMYXN0IGJ1dCBub3QgbGVhc3Q6 IFJlc3RvcmUgRGF0YSBhbmQgcmV0dXJuIHRvIG1haW4gcHJvZ3JhbS4NCg0KCTsgUmVzdG9yZSBT VEFUVVMNCglTV0FQRglURU1QX1NUQVRVUywgVwkJCQkJCQkJCQk7IFJlc3RvcmUgU1RBVFVTDQoJ TU9WV0YJU1RBVFVTDQoNCgk7IFJlc3RvcmUgVy1SZWdpc3Rlcg0KCVNXQVBGCVRFTVBfVywgRgkJ CQkJCQkJCQkJOyBTd2FwIHRoZSBmaXJzdCBhbmQgdGhlIGxhc3QgbmlibGUgb2YgVEVNUF9XLg0K CVNXQVBGCVRFTVBfVywgVwkJCQkJCQkJCQkJOyBTd2FwIHRoZSBURU1QX3cgaW50byB0aGUgVy1S ZWdpc3Rlci4NCg0KCUJDRgkJSU5UQ09OLCBSQUlGCQkJCQkJCQkJCTsgQ2xlYXIgdGhlIFBPUlRB IGludGVycnVwdCBmbGFnLiANCglSRVRGSUUJCQkJCQkJCQkJCQkJCTsgUmV0dXJuIGZyb20gSW50 dGVydXB0LCBhbmQgZ28gYmFjayB0byB3aGVyZXZlciEJDQoNCjsgRU5EIE9GIElOVEVSUlVQVCBT RVJWSUNFIFJPVVRJTkUNCg0KDQo7ICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKiogOw0KOyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsNCjsgICAgICAgICAgICAgICBN SUNST0NPTlRST0xMRVIgSU5JVElBTElaQVRJT04gICAgICAgICAgICAgICAgICA7DQo7ICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Ow0KO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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOw0KOyAgICAgICAgICAgICAgICAgICAgICAg ICAgVEhFIFJFQUwgQ09ERSAgICAgICAgICAgICAgICAgICAgICAgIDsNCjsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7DQo7ICoq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KiogOyANCg0KU1RBUlQNCglDQUxMCUlOSVRJQUxJWkUJCQkJCQkJCQkJCTsgSW5pdGlhbGl6ZSBN aWNyb2NvbnRyb2xsZXIuDQoNCgk7IE1haW4gcHJvZ3JhbSBsb29wLiANCk1BSU4NCg0KCU5PUAkJ CQkJCQkJCQkJCQkJCTsgRG8gbm90aGluZy4uLg0KDQoJR09UTyBNQUlOCQkJCQkJCQkJCQkJCTsg TG9vcCBNQUlOLg0KCQ0KCTsgQ09ERSBFTkRTIEhFUkUNCglFTkQNCg== ------=_Part_14191_15608383.1126697576749 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_Part_14191_15608383.1126697576749--