News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Can help me solve this ques?? Error A2022...

Started by nick, May 11, 2012, 02:43:16 PM

Previous topic - Next topic

Antariy

Quote from: jj2007 on May 13, 2012, 06:49:20 AM
Try!

(need to add printing of CR+LF after "Y" answer on the question "One more (n)?")

        Dividend: 1000
        Divisor: 10
The result is 100. One more (n)?
        Dividend: 1000
        Divisor: -1
The result is 0. One more (n)?
        Dividend: 1000
        Divisor: 1000
The result is 1. One more (n)?
        Dividend: 1000
        Divisor: 0


Exception (line ??):
Code    0BADF00D
EIP     7C81EB33


Jochen, MasmBasic source looks cool :U

jj2007

Quote from: Antariy on May 13, 2012, 02:23:53 PM
Jochen, MasmBasic source looks cool :U

Thanks :bg

Actually, I was surprised how easy it was to implement Try/Catch. Especially since the two macros don't insert any code, he he :toothy

Antariy

Quote from: jj2007 on May 13, 2012, 03:11:22 PM
Actually, I was surprised how easy it was to implement Try/Catch. Especially since the two macros don't insert any code, he he :toothy

SetUnhandledExceptionFilter? :bg

jj2007

Quote from: Antariy on May 13, 2012, 09:19:29 PM
SetUnhandledExceptionFilter? :bg

see MbTryCatch in \masm32\MasmBasic\MasmBasic.inc :bg