Search found 49 matches

by TodWulff
Fri Oct 12, 2018 6:01 am
Forum: Kitchen sink
Topic: SizeOf built-in function?
Replies: 3
Views: 1763

Re: SizeOf built-in function?

And yes, the 2nd piece I implement will be the Marine Corps Hymn...

Ooh Rah!

:D
by TodWulff
Fri Oct 12, 2018 5:52 am
Forum: Kitchen sink
Topic: SizeOf built-in function?
Replies: 3
Views: 1763

SizeOf built-in function?

Is there a built-in function that returns the number of elements in a previously dim'd int, single, byte (or other sub-word variants) arrays? Yeah, I know I can physically count the elements in the def statements and use that with a #def, but if I neglect to do so, or forget to update the #def that ...
by TodWulff
Wed Oct 03, 2018 4:28 am
Forum: Software issues
Topic: NPP Editor User Defined Language
Replies: 0
Views: 814

NPP Editor User Defined Language

I've attached a UDL file for Notepad Plus Plus (NPP). I'm currently using v7.5.8 x64. Feel free to make use of it. You can import it via the menus: language>define your language - select import and drill down to the .xml in the attached. I recommend backing up your current instance of NPP, just in c...
by TodWulff
Tue Oct 02, 2018 10:49 pm
Forum: Kitchen sink
Topic: Tool for exploring timing of ARMbasic Code Constructs
Replies: 1
Views: 780

Tool for exploring timing of ARMbasic Code Constructs

The following has been maturing and I ended up refactoring it today, to push it out to the community. I don't know how helpful it will be to others, but just in case, here ya go. I hope someone benefits from it. '=======================================================================================...
by TodWulff
Tue Oct 02, 2018 12:24 am
Forum: Kitchen sink
Topic: Sample Source for some simple sort routines, with testing
Replies: 1
Views: 780

Sample Source for some simple sort routines, with testing

This proves that Knuth was not mistaken (surprise). #define SortArrayElmtCnt 256 #define RandomNumBitWidth 8 ' 1-8, inclusive, for the inline random code that is the code.catrastrophy on line 42 (to keep random byte values bound from 0 to 255) #define LoopTestIterations 64 sub ByteArrayBubbleSort(by...
by TodWulff
Mon Oct 01, 2018 9:21 pm
Forum: Software issues
Topic: BT Requests
Replies: 2
Views: 797

Re: BT Requests

I get it. S = stubborn. :)
by TodWulff
Sun Sep 30, 2018 8:37 pm
Forum: Kitchen sink
Topic: Source Code Inspiration Resource
Replies: 0
Views: 814

Source Code Inspiration Resource

As info, I needed a routine to help with sorting a byte array of integers. Going back to my TRS-80 days back in the late 70s (middle-school years), I recalled that a bubble sort routine was simply implemented. Searched for reference code and stumbled across the Rosetta Code site . I've known about R...
by TodWulff
Sun Sep 30, 2018 1:05 am
Forum: Serial Communication
Topic: BasicChip bit-bang serial
Replies: 3
Views: 3568

Re: BasicChip bit-bang serial

As info, I am able to get a slow (30MHz) LPC824 to work reliably with bit banging an asynchronous 34800 baud serial input. I went the bit banging route as I was, and still am, struggling with getting one of the unused UART peripherals working from w/in ARMbasic. However, that is a topic for another ...
by TodWulff
Sun Sep 16, 2018 3:34 am
Forum: Software issues
Topic: BT Requests
Replies: 2
Views: 797

BT Requests

Good day. As a respectful request, if y'all could consider the following, for eventual UI upgrades to BasicTools, when/if appropriate, it would be most helpful and appreciated: Add a reload button to the 'button bar' Add some control character handling for TCLTerm (iirc, that is the console code for...
by TodWulff
Thu Sep 13, 2018 11:48 pm
Forum: Kitchen sink
Topic: NXP Libraries and C/C++ Compiler's Packed Option
Replies: 2
Views: 946

Re: NXP Libraries and C/C++ Compiler's Packed Option

Understood on NXP libs and Wear Leveling. Thanks.