Assembly x86 Date to Number - Breaking a string into smaller sections
I'm actually looking to be pointed in the right direction on an issue. I'm looking to convert a date in x86 Assembly from the format "DD-MMM-YYYY" to a unique number so that it can be bubble sorted later and eventually converted back. So, when I have a string input ie: .data inDate dw "08-SEP-1993" And I want to split it up to day = "08" month = "SEP" year = "1993" So that I can process it further (I'll be converting SEP to "7", ect.) So my question is what is a simple, efficient way to break the date down (code-wise)? I know I'll need to convert the date format to allow for sorting, but I'm