Character counting?

From: Solomani (spamtrap_at_crayne.org)
Date: 11/05/04


Date: Fri, 5 Nov 2004 07:44:43 +0000 (UTC)

Hi all,
Here is a 86k Motorola ASM program I have written. What it does is
accept keystrokes, echos them to the screen and stores them at memory
position $2400. It also should display the character count. As far
as can tell everything works except the character count isnt
displayed. But I dont get any errors. So I think I have set-up my
traps wrong in the finished section? Any help appreciated!

                org $1000
                move.l #$7ffe,sp
                move.l #string,a6
                clr.w d0 * zero the counter
next_key move.b #247,d7
                trap #14
                cmp.b #cr,d0
                beq finished
                move.b d0,(a6)+
                 move.b #248,D7
                 trap #14
                add.w #1,d0 * bump count
                bra next_key
finished move.b #228,d7
                trap #14
                move.w #248,d7 * display count
                trap #14
data org $2400
string ds.b 100
cr equ $0d
                end



Relevant Pages

  • Re: both specifying now, Khalid and Hamza pined the recent tents in search of current notion
    ... equally squeeze Hakeem and Annie's protestant draper. ... rain insights. ... Gawd, I'll project the character. ... it will apparently guide the memory. ...
    (sci.crypt)
  • Re: Arabic cursive in Unicode
    ... For example, on the Mac, as you type an Arabic character, you see an isolated form or a final form. ... This means that the display software has to look at the context of the "logical character codes" and select the appropriate "presentation glyphs" every time the text has to be re-displayed. ... It would be up to the software whether to give the user the option of displaying the ligatures from the Presentation Forms-A list. ... I suspect that this kind of option would only be available in specialized Arabic-language input software. ...
    (sci.lang)
  • Re: Cohens paper on byte order
    ... memory space representing that variable. ... >> I meant by character by character.) ... > It is used for practical tasks by a lot of engineers working with ...
    (sci.crypt)
  • Re: Dynamic Disassembler (determine main() location at runtime)
    ... The current dead space seems to be 0x00 and 0xCC on ... Windows 2000 allocates Virtual Memory on 64KB boundaries for the ... may see more dead space with a new BYTE fill character. ... I don't see why you would care if there is a jump stub for main or not; ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Follow up - Rockler in NJ at Force Machinery
    ... huge display of Amana router bits with drawers below so they must ... From what I looked at as far as price ... stores in the middle island. ... wings, but it's very solid. ...
    (rec.woodworking)