Pages

Thursday, September 22, 2022

Display ASCII Decimal

Write a procedure named WriteScaled that outputs a decimal ASCII number with an implied decimal point. Suppose the following number were defined as follows, where DECIMAL_OFFSET indicates that the decimal point must be inserted five positions from the right side of the number:

DECIMAL_OFFSET = 5
.data
decimal_one BYTE "100123456789765"

WriteScaled would display the number like this:

1001234567.89765

When calling WriteScaled, pass the number’s offset in EDX, the number length in ECX, and the decimal offset in EBX. Write a test program that passes three numbers of different sizes to the WriteScaled procedure.

You are on the right track

Success is earned, one step at a time. One of the most invaluable skills a person can have is being able to clearly express what they want. Sometimes the hardest part of finding success is gathering the courage to get started. As long as you’re learning, you’ll never really fail. 

The most successful people don’t look back to see who’s watching.

“Our greatest glory is not in never falling, but in rising every time we fail.”

—Confucius

Look for opportunities to lift others up along the way. Having the proper mindset, moving outside your comfort zone, developing and maintaining healthy relationships, and staying focused have been key drivers of success for thousands of years.

Sweet success

 The most successful people don’t look back to see who’s watching.

Work Hard.

The most successful people don’t look back to see who’s watching. Look for opportunities to lift others up along the way. Having the proper mindset, moving outside your comfort zone, developing and maintaining healthy relationships, and staying focused have been key drivers of success for thousands of years. 

Brilliant.

“Good actions give strength to ourselves and inspire good actions in others.” — Plato

You are on the right track.

Brilliant

Having the proper mindset, moving outside your comfort zone, developing and maintaining healthy relationships, and staying focused have been key drivers of success for thousands of years.

  • Work smart
  • Work hard

“Do not say a little in many words but a great deal in few.”

— Pythagoras

Success is earned, one step at a time. One of the most invaluable skills a person can have is being able to clearly express what they want. Sometimes the hardest part of finding success is gathering the courage to get started. As long as you’re learning, you’ll never really fail.