•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 374,143 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,510 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser:
Views: 402 | Replies: 3
![]() |
•
•
Join Date: May 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
the assignment is:
Create a macro named mWriteNumber that writes a signed integer to the console output.
Use the WriteInt procedure in the Irvine32 library. The argument passed to the macro can
be a byte, word, or doubleword. Use conditional oeprators so that the macro adapts to
the different sizes of the argument. Write the main code to test the macro, passing
arguments of different sizes.
i'm not asking for codes but just ideas on how to approach it. any suggestions? thanks.
Create a macro named mWriteNumber that writes a signed integer to the console output.
Use the WriteInt procedure in the Irvine32 library. The argument passed to the macro can
be a byte, word, or doubleword. Use conditional oeprators so that the macro adapts to
the different sizes of the argument. Write the main code to test the macro, passing
arguments of different sizes.
i'm not asking for codes but just ideas on how to approach it. any suggestions? thanks.
•
•
Join Date: May 2008
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 1
strange, don't u have the latest package of masm32 ?
anyway:
anyway:
asm Syntax (Toggle Plain Text)
;--------------------------------------------------- issize MACRO var:req, bytes:req LOCAL rv rv = regsize(var) IFE rv ; if not a register use SIZE IF SIZE var EQ bytes EXITM <1> ELSE EXITM <0> ENDIF ELSE ; it's a register IF rv EQ bytes EXITM <1> ELSE EXITM <0> ENDIF ENDIF ENDM
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
Similar Threads
- mac macros in personal workbooks (Mac Software)
- Error Message in Word: Visual Basic Box 'Macros in this project are Disabled' (Windows NT / 2000 / XP / 2003)
- Macros & VB to create various letters (Visual Basic 4 / 5 / 6)
- macros in Excel for iMAC (Mac Software)
- Accessing files that are not currently open and running VB macros in them? (Visual Basic 4 / 5 / 6)
- Macros in Excel (Visual Basic 4 / 5 / 6)
Other Threads in the Assembly Forum
- Previous Thread: MIPS processor (MIPS24KEC- Release 2) Programming....
- Next Thread: IIR Filter implementation in TMS320C6416?


Linear Mode